Loading keystore/java/android/security/keystore/KeyGenParameterSpec.java +0 −25 Original line number Diff line number Diff line Loading @@ -449,9 +449,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * invalid signature. This is OK if the certificate is only used for obtaining the * public key from Android KeyStore. * * <p><b>NOTE: The {@code purposes} parameter has currently no effect on asymmetric * key pairs.</b> * * <p>See {@link KeyProperties}.{@code PURPOSE} flags. */ public Builder(@NonNull String keystoreAlias, @KeyProperties.PurposeEnum int purposes) { Loading Loading @@ -556,8 +553,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityEnd(Date) */ @NonNull Loading @@ -571,8 +566,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) * @see #setKeyValidityForOriginationEnd(Date) Loading @@ -589,8 +582,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForConsumptionEnd(Date) */ @NonNull Loading @@ -605,8 +596,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForOriginationEnd(Date) */ @NonNull Loading @@ -624,8 +613,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * keys, the set of digests defaults to the digest associated with the key algorithm (e.g., * {@code SHA-256} for key algorithm {@code HmacSHA256} * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see KeyProperties.Digest */ @NonNull Loading @@ -642,8 +629,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>This must be specified for keys which are used for encryption/decryption. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code ENCRYPTION_PADDING} constants. */ @NonNull Loading @@ -660,8 +645,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>This must be specified for RSA keys which are used for signing/verification. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code SIGNATURE_PADDING} constants. */ @NonNull Loading @@ -678,8 +661,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>This must be specified for encryption/decryption keys. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code BLOCK_MODE} constants. */ @NonNull Loading Loading @@ -723,8 +704,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * <li>If you are using RSA encryption without padding, consider switching to encryption * padding schemes which offer {@code IND-CPA}, such as PKCS#1 or OAEP.</li> * </ul> * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> */ @NonNull public Builder setRandomizedEncryptionRequired(boolean required) { Loading @@ -748,8 +727,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * <p>This restriction applies only to private key operations. Public key operations are not * restricted. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setUserAuthenticationValidityDurationSeconds(int) */ @NonNull Loading @@ -764,8 +741,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the user needs to authenticate for every use of the key. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @param seconds duration in seconds or {@code -1} if the user needs to authenticate for * every use of the key. * Loading keystore/java/android/security/keystore/KeyProtection.java +0 −25 Original line number Diff line number Diff line Loading @@ -305,9 +305,6 @@ public final class KeyProtection implements ProtectionParameter { * @param purposes set of purposes (e.g., encrypt, decrypt, sign) for which the key can be * used. Attempts to use the key for any other purpose will be rejected. * * <p><b>NOTE: The {@code purposes} parameter has currently no effect on asymmetric * key pairs.</b> * * <p>See {@link KeyProperties}.{@code PURPOSE} flags. */ public Builder(@KeyProperties.PurposeEnum int purposes) { Loading @@ -319,8 +316,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityEnd(Date) */ @NonNull Loading @@ -334,8 +329,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) * @see #setKeyValidityForOriginationEnd(Date) Loading @@ -352,8 +345,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForConsumptionEnd(Date) */ @NonNull Loading @@ -368,8 +359,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForOriginationEnd(Date) */ @NonNull Loading @@ -385,8 +374,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>This must be specified for keys which are used for encryption/decryption. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code ENCRYPTION_PADDING} constants. */ @NonNull Loading @@ -403,8 +390,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>This must be specified for RSA keys which are used for signing/verification. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code SIGNATURE_PADDING} constants. */ @NonNull Loading @@ -423,8 +408,6 @@ public final class KeyProtection implements ProtectionParameter { * {@link Key#getAlgorithm()}. For asymmetric signing keys the set of digest algorithms * must be specified. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code DIGEST} constants. */ @NonNull Loading @@ -440,8 +423,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>This must be specified for encryption/decryption keys. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code BLOCK_MODE} constants. */ @NonNull Loading Loading @@ -483,8 +464,6 @@ public final class KeyProtection implements ProtectionParameter { * <li>If you are using RSA encryption without padding, consider switching to padding * schemes which offer {@code IND-CPA}, such as PKCS#1 or OAEP.</li> * </ul> * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> */ @NonNull public Builder setRandomizedEncryptionRequired(boolean required) { Loading @@ -505,8 +484,6 @@ public final class KeyProtection implements ProtectionParameter { * <a href="{@docRoot}training/articles/keystore.html#UserAuthentication">More * information</a>. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setUserAuthenticationValidityDurationSeconds(int) */ @NonNull Loading @@ -521,8 +498,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the user needs to authenticate for every use of the key. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @param seconds duration in seconds or {@code -1} if the user needs to authenticate for * every use of the key. * Loading Loading
keystore/java/android/security/keystore/KeyGenParameterSpec.java +0 −25 Original line number Diff line number Diff line Loading @@ -449,9 +449,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * invalid signature. This is OK if the certificate is only used for obtaining the * public key from Android KeyStore. * * <p><b>NOTE: The {@code purposes} parameter has currently no effect on asymmetric * key pairs.</b> * * <p>See {@link KeyProperties}.{@code PURPOSE} flags. */ public Builder(@NonNull String keystoreAlias, @KeyProperties.PurposeEnum int purposes) { Loading Loading @@ -556,8 +553,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityEnd(Date) */ @NonNull Loading @@ -571,8 +566,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) * @see #setKeyValidityForOriginationEnd(Date) Loading @@ -589,8 +582,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForConsumptionEnd(Date) */ @NonNull Loading @@ -605,8 +596,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForOriginationEnd(Date) */ @NonNull Loading @@ -624,8 +613,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * keys, the set of digests defaults to the digest associated with the key algorithm (e.g., * {@code SHA-256} for key algorithm {@code HmacSHA256} * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see KeyProperties.Digest */ @NonNull Loading @@ -642,8 +629,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>This must be specified for keys which are used for encryption/decryption. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code ENCRYPTION_PADDING} constants. */ @NonNull Loading @@ -660,8 +645,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>This must be specified for RSA keys which are used for signing/verification. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code SIGNATURE_PADDING} constants. */ @NonNull Loading @@ -678,8 +661,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>This must be specified for encryption/decryption keys. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code BLOCK_MODE} constants. */ @NonNull Loading Loading @@ -723,8 +704,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * <li>If you are using RSA encryption without padding, consider switching to encryption * padding schemes which offer {@code IND-CPA}, such as PKCS#1 or OAEP.</li> * </ul> * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> */ @NonNull public Builder setRandomizedEncryptionRequired(boolean required) { Loading @@ -748,8 +727,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * <p>This restriction applies only to private key operations. Public key operations are not * restricted. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setUserAuthenticationValidityDurationSeconds(int) */ @NonNull Loading @@ -764,8 +741,6 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the user needs to authenticate for every use of the key. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @param seconds duration in seconds or {@code -1} if the user needs to authenticate for * every use of the key. * Loading
keystore/java/android/security/keystore/KeyProtection.java +0 −25 Original line number Diff line number Diff line Loading @@ -305,9 +305,6 @@ public final class KeyProtection implements ProtectionParameter { * @param purposes set of purposes (e.g., encrypt, decrypt, sign) for which the key can be * used. Attempts to use the key for any other purpose will be rejected. * * <p><b>NOTE: The {@code purposes} parameter has currently no effect on asymmetric * key pairs.</b> * * <p>See {@link KeyProperties}.{@code PURPOSE} flags. */ public Builder(@KeyProperties.PurposeEnum int purposes) { Loading @@ -319,8 +316,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityEnd(Date) */ @NonNull Loading @@ -334,8 +329,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) * @see #setKeyValidityForOriginationEnd(Date) Loading @@ -352,8 +345,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForConsumptionEnd(Date) */ @NonNull Loading @@ -368,8 +359,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the key is valid at any instant. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setKeyValidityForOriginationEnd(Date) */ @NonNull Loading @@ -385,8 +374,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>This must be specified for keys which are used for encryption/decryption. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code ENCRYPTION_PADDING} constants. */ @NonNull Loading @@ -403,8 +390,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>This must be specified for RSA keys which are used for signing/verification. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code SIGNATURE_PADDING} constants. */ @NonNull Loading @@ -423,8 +408,6 @@ public final class KeyProtection implements ProtectionParameter { * {@link Key#getAlgorithm()}. For asymmetric signing keys the set of digest algorithms * must be specified. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code DIGEST} constants. */ @NonNull Loading @@ -440,8 +423,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>This must be specified for encryption/decryption keys. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * <p>See {@link KeyProperties}.{@code BLOCK_MODE} constants. */ @NonNull Loading Loading @@ -483,8 +464,6 @@ public final class KeyProtection implements ProtectionParameter { * <li>If you are using RSA encryption without padding, consider switching to padding * schemes which offer {@code IND-CPA}, such as PKCS#1 or OAEP.</li> * </ul> * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> */ @NonNull public Builder setRandomizedEncryptionRequired(boolean required) { Loading @@ -505,8 +484,6 @@ public final class KeyProtection implements ProtectionParameter { * <a href="{@docRoot}training/articles/keystore.html#UserAuthentication">More * information</a>. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setUserAuthenticationValidityDurationSeconds(int) */ @NonNull Loading @@ -521,8 +498,6 @@ public final class KeyProtection implements ProtectionParameter { * * <p>By default, the user needs to authenticate for every use of the key. * * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @param seconds duration in seconds or {@code -1} if the user needs to authenticate for * every use of the key. * Loading