Methods Summary |
---|
public final java.util.Collection | getCRLs(java.security.cert.CRLSelector selector)Returns the list of {@code CRL}s for the specified {@code CRLSelector}
from this certificate store.
return spiImpl.engineGetCRLs(selector);
|
public final java.security.cert.CertStoreParameters | getCertStoreParameters()Returns a copy of the certificate store parameters that were used to
initialize this instance.
if (certStoreParams == null) {
return null;
} else {
return (CertStoreParameters) certStoreParams.clone();
}
|
public final java.util.Collection | getCertificates(java.security.cert.CertSelector selector)Returns the list of {@code Certificate}s for the specified {@code
CertSelector} from this certificate store.
return spiImpl.engineGetCertificates(selector);
|
public static final java.lang.String | getDefaultType()Returns the default {@code CertStore} type from the Security
Properties.
String defaultType = AccessController
.doPrivileged(new java.security.PrivilegedAction<String>() {
public String run() {
return Security.getProperty(PROPERTYNAME);
}
});
return (defaultType == null ? DEFAULTPROPERTY : defaultType);
|
public static java.security.cert.CertStore | getInstance(java.lang.String type, java.security.cert.CertStoreParameters params)Creates a new {@code CertStore} instance with the specified type and
initialized with the specified parameters.
if (type == null) {
throw new NullPointerException(Messages.getString("security.07")); //$NON-NLS-1$
}
try {
synchronized (engine) {
engine.getInstance(type, params);
return new CertStore((CertStoreSpi) engine.spi, engine.provider,
type, params);
}
} catch (NoSuchAlgorithmException e) {
Throwable th = e.getCause();
if (th == null) {
throw e;
} else {
throw new InvalidAlgorithmParameterException(e.getMessage(), th);
}
}
|
public static java.security.cert.CertStore | getInstance(java.lang.String type, java.security.cert.CertStoreParameters params, java.lang.String provider)Creates a new {@code CertStore} instance from the specified provider with
the specified type and initialized with the specified parameters.
if ((provider == null) || (provider.length() == 0)) {
throw new IllegalArgumentException(Messages.getString("security.02")); //$NON-NLS-1$
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
throw new NoSuchProviderException(provider);
}
return getInstance(type, params, impProvider);
|
public static java.security.cert.CertStore | getInstance(java.lang.String type, java.security.cert.CertStoreParameters params, java.security.Provider provider)Creates a new {@code CertStore} instance from the specified provider with
the specified type and initialized with the specified parameters.
if (provider == null) {
throw new IllegalArgumentException(Messages.getString("security.04")); //$NON-NLS-1$
}
if (type == null) {
throw new NullPointerException(Messages.getString("security.07")); //$NON-NLS-1$
}
try {
synchronized (engine) {
engine.getInstance(type, provider, params);
return new CertStore((CertStoreSpi) engine.spi, provider, type,
params);
}
} catch (NoSuchAlgorithmException e) {
Throwable th = e.getCause();
if (th == null) {
throw e;
} else {
throw new InvalidAlgorithmParameterException(e.getMessage(), th);
}
}
|
public final java.security.Provider | getProvider()Returns the security provider.
return provider;
|
public final java.lang.String | getType()Returns the certificate store type.
return type;
|