加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090219163524/http://developer.android.com:80/reference/java/security/KeyStore.html
public class

KeyStore

extends Object
java.lang.Object
   ↳ java.security.KeyStore

Summary

Nested Classes
public class KeyStore.Builder  
public class KeyStore.CallbackHandlerProtection  
public class KeyStore.Entry  
public class KeyStore.LoadStoreParameter  
public class KeyStore.PasswordProtection  
public class KeyStore.PrivateKeyEntry  
public class KeyStore.ProtectionParameter  
public class KeyStore.SecretKeyEntry  
public class KeyStore.TrustedCertificateEntry  
Protected Constructors
KeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type)
Public Methods
final Enumeration<String> aliases()
final boolean containsAlias(String alias)
1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null
final void deleteEntry(String alias)
1.4.2 and 1.5 releases throw NullPointerException when alias is null
final boolean entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)
final Certificate getCertificate(String alias)
final String getCertificateAlias(Certificate cert)
final Certificate[] getCertificateChain(String alias)
final Date getCreationDate(String alias)
final static String getDefaultType()
final KeyStore.Entry getEntry(String alias, KeyStore.ProtectionParameter param)
static KeyStore getInstance(String type, String provider)
static KeyStore getInstance(String type)
static KeyStore getInstance(String type, Provider provider)
throws NullPointerException if type is null (instead of NoSuchAlgorithmException) as in 1.4 release
final Key getKey(String alias, char[] password)
final Provider getProvider()
final String getType()
final boolean isCertificateEntry(String alias)
jdk1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null
final boolean isKeyEntry(String alias)
jdk1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null
final void load(InputStream stream, char[] password)
final void load(KeyStore.LoadStoreParameter param)
final void setCertificateEntry(String alias, Certificate cert)
1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null
final void setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter param)
1.5 release throws unspecified NullPointerException when alias or entry is null
final void setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
1.4.2 and 1.5 releases throw unspecified NullPointerException - when alias is null IllegalArgumentException - when password is null IllegalArgumentException - when key is instance of PrivateKey and chain is null or empty
final void setKeyEntry(String alias, byte[] key, Certificate[] chain)
final int size()
final void store(KeyStore.LoadStoreParameter param)
final void store(OutputStream stream, char[] password)
throws IOException when stream or password is null
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected KeyStore (KeyStoreSpi keyStoreSpi, Provider provider, String type)

Public Methods

public final Enumeration<String> aliases ()

public final boolean containsAlias (String alias)

1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null

public final void deleteEntry (String alias)

1.4.2 and 1.5 releases throw NullPointerException when alias is null

public final boolean entryInstanceOf (String alias, Class<? extends KeyStore.Entry> entryClass)

public final Certificate getCertificate (String alias)

public final String getCertificateAlias (Certificate cert)

public final Certificate[] getCertificateChain (String alias)

public final Date getCreationDate (String alias)

public static final String getDefaultType ()

public static KeyStore getInstance (String type, String provider)

Throws
NullPointerException if type is null (instead of NoSuchAlgorithmException) as in 1.4 release
KeyStoreException
NoSuchProviderException

public static KeyStore getInstance (String type)

Throws
NullPointerException if type is null
KeyStoreException

public static KeyStore getInstance (String type, Provider provider)

throws NullPointerException if type is null (instead of NoSuchAlgorithmException) as in 1.4 release

public final Key getKey (String alias, char[] password)

public final Provider getProvider ()

public final String getType ()

public final boolean isCertificateEntry (String alias)

jdk1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null

public final boolean isKeyEntry (String alias)

jdk1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null

public final void load (InputStream stream, char[] password)

public final void setCertificateEntry (String alias, Certificate cert)

1.4.2 and 1.5 releases throw unspecified NullPointerException when alias is null

public final void setEntry (String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter param)

1.5 release throws unspecified NullPointerException when alias or entry is null

public final void setKeyEntry (String alias, Key key, char[] password, Certificate[] chain)

1.4.2 and 1.5 releases throw unspecified NullPointerException - when alias is null IllegalArgumentException - when password is null IllegalArgumentException - when key is instance of PrivateKey and chain is null or empty

public final void setKeyEntry (String alias, byte[] key, Certificate[] chain)

public final int size ()

public final void store (OutputStream stream, char[] password)

throws IOException when stream or password is null