From 7882a7fcd4e236be1d569cdf657db2b072dfb28a Mon Sep 17 00:00:00 2001 From: Alex Klyubin Date: Thu, 9 Apr 2015 14:33:11 -0700 Subject: Fix minor issues in new Javadocs of AndroidKeyStore. Bug: 18088752 Change-Id: Ie84cc6066c82f2659da17a1eb158c2e3acf5094d --- keystore/java/android/security/KeyGeneratorSpec.java | 8 ++++---- .../java/android/security/KeyPairGeneratorSpec.java | 8 ++++---- keystore/java/android/security/KeyStoreParameter.java | 19 ++++++------------- 3 files changed, 14 insertions(+), 21 deletions(-) (limited to 'keystore/java') diff --git a/keystore/java/android/security/KeyGeneratorSpec.java b/keystore/java/android/security/KeyGeneratorSpec.java index 5bed2e1..4dcabd0 100644 --- a/keystore/java/android/security/KeyGeneratorSpec.java +++ b/keystore/java/android/security/KeyGeneratorSpec.java @@ -282,7 +282,7 @@ public class KeyGeneratorSpec implements AlgorithmParameterSpec { /** * Sets the time instant before which the key is not yet valid. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityEnd(Date) */ @@ -294,7 +294,7 @@ public class KeyGeneratorSpec implements AlgorithmParameterSpec { /** * Sets the time instant after which the key is no longer valid. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) @@ -309,7 +309,7 @@ public class KeyGeneratorSpec implements AlgorithmParameterSpec { /** * Sets the time instant after which the key is no longer valid for encryption and signing. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityForConsumptionEnd(Date) */ @@ -322,7 +322,7 @@ public class KeyGeneratorSpec implements AlgorithmParameterSpec { * Sets the time instant after which the key is no longer valid for decryption and * verification. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityForOriginationEnd(Date) */ diff --git a/keystore/java/android/security/KeyPairGeneratorSpec.java b/keystore/java/android/security/KeyPairGeneratorSpec.java index 8945701..db310ea 100644 --- a/keystore/java/android/security/KeyPairGeneratorSpec.java +++ b/keystore/java/android/security/KeyPairGeneratorSpec.java @@ -600,7 +600,7 @@ public final class KeyPairGeneratorSpec implements AlgorithmParameterSpec { /** * Sets the time instant before which the key is not yet valid. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityEnd(Date) * @@ -614,7 +614,7 @@ public final class KeyPairGeneratorSpec implements AlgorithmParameterSpec { /** * Sets the time instant after which the key is no longer valid. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) @@ -631,7 +631,7 @@ public final class KeyPairGeneratorSpec implements AlgorithmParameterSpec { /** * Sets the time instant after which the key is no longer valid for encryption and signing. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityForConsumptionEnd(Date) * @@ -646,7 +646,7 @@ public final class KeyPairGeneratorSpec implements AlgorithmParameterSpec { * Sets the time instant after which the key is no longer valid for decryption and * verification. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityForOriginationEnd(Date) * diff --git a/keystore/java/android/security/KeyStoreParameter.java b/keystore/java/android/security/KeyStoreParameter.java index c9b7c36..fb534b4 100644 --- a/keystore/java/android/security/KeyStoreParameter.java +++ b/keystore/java/android/security/KeyStoreParameter.java @@ -19,15 +19,14 @@ package android.security; import android.content.Context; import java.security.Key; -import java.security.KeyPairGenerator; import java.security.KeyStore.ProtectionParameter; import java.util.Date; import javax.crypto.Cipher; /** - * This provides the optional parameters that can be specified for - * {@code KeyStore} entries that work with + * Parameters specifying how to secure and restrict the use of a key being + * imported into the * Android KeyStore * facility. The Android KeyStore facility is accessed through a * {@link java.security.KeyStore} API using the {@code AndroidKeyStore} @@ -38,12 +37,6 @@ import javax.crypto.Cipher; * there is only one logical instance of the {@code KeyStore} per application * UID so apps using the {@code sharedUid} facility will also share a * {@code KeyStore}. - *

- * Keys may be generated using the {@link KeyPairGenerator} facility with a - * {@link KeyPairGeneratorSpec} to specify the entry's {@code alias}. A - * self-signed X.509 certificate will be attached to generated entries, but that - * may be replaced at a later time by a certificate signed by a real Certificate - * Authority. */ public final class KeyStoreParameter implements ProtectionParameter { private int mFlags; @@ -291,7 +284,7 @@ public final class KeyStoreParameter implements ProtectionParameter { /** * Sets the time instant before which the key is not yet valid. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityEnd(Date) * @@ -305,7 +298,7 @@ public final class KeyStoreParameter implements ProtectionParameter { /** * Sets the time instant after which the key is no longer valid. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityStart(Date) * @see #setKeyValidityForConsumptionEnd(Date) @@ -322,7 +315,7 @@ public final class KeyStoreParameter implements ProtectionParameter { /** * Sets the time instant after which the key is no longer valid for encryption and signing. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityForConsumptionEnd(Date) * @@ -337,7 +330,7 @@ public final class KeyStoreParameter implements ProtectionParameter { * Sets the time instant after which the key is no longer valid for decryption and * verification. * - * By default, the key is valid at any instant. + *

By default, the key is valid at any instant. * * @see #setKeyValidityForOriginationEnd(Date) * -- cgit v1.1