Methods Summary |
---|
public final java.security.cert.CRL | generateCRL(java.io.InputStream inStream)Generates and initializes a Certificate Revocation List (CRL) from
the provided input stream.
return spiImpl.engineGenerateCRL(inStream);
|
public final java.util.Collection | generateCRLs(java.io.InputStream inStream)Generates and initializes a collection of Certificate Revocation
List (CRL) from the provided input stream.
return spiImpl.engineGenerateCRLs(inStream);
|
public final java.security.cert.CertPath | generateCertPath(java.io.InputStream inStream, java.lang.String encoding)Generates a {@code CertPath} (a certificate chain) from the provided
{@code InputStream} and the specified encoding scheme.
return spiImpl.engineGenerateCertPath(inStream, encoding);
|
public final java.security.cert.CertPath | generateCertPath(java.util.List certificates)Generates a {@code CertPath} from the provided list of certificates. The
encoding is the default encoding.
return spiImpl.engineGenerateCertPath(certificates);
|
public final java.security.cert.CertPath | generateCertPath(java.io.InputStream inStream)Generates a {@code CertPath} (a certificate chain) from the provided
{@code InputStream}. The default encoding scheme is applied.
Iterator<String> it = getCertPathEncodings();
if (!it.hasNext()) {
throw new CertificateException(Messages.getString("security.74")); //$NON-NLS-1$
}
return spiImpl.engineGenerateCertPath(inStream, it.next());
|
public final java.security.cert.Certificate | generateCertificate(java.io.InputStream inStream)Generates and initializes a {@code Certificate} from the provided input
stream.
return spiImpl.engineGenerateCertificate(inStream);
|
public final java.util.Collection | generateCertificates(java.io.InputStream inStream)Generates and initializes a collection of (unrelated) certificates from
the provided input stream.
return spiImpl.engineGenerateCertificates(inStream);
|
public final java.util.Iterator | getCertPathEncodings()Returns an {@code Iterator} over the supported {@code CertPath} encodings
(as Strings). The first element is the default encoding scheme to apply.
return spiImpl.engineGetCertPathEncodings();
|
public static final java.security.cert.CertificateFactory | getInstance(java.lang.String type)Creates a new {@code CertificateFactory} instance that provides the
requested certificate type.
if (type == null) {
throw new NullPointerException(Messages.getString("security.07")); //$NON-NLS-1$
}
try {
synchronized (engine) {
engine.getInstance(type, null);
return new CertificateFactory((CertificateFactorySpi) engine.spi,
engine.provider, type);
}
} catch (NoSuchAlgorithmException e) {
throw new CertificateException(e);
}
|
public static final java.security.cert.CertificateFactory | getInstance(java.lang.String type, java.lang.String provider)Creates a new {@code CertificateFactory} instance from the specified
provider that provides the requested certificate type.
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, impProvider);
|
public static final java.security.cert.CertificateFactory | getInstance(java.lang.String type, java.security.Provider provider)Creates a new {@code CertificateFactory} instance from the specified
provider that provides the requested certificate type.
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, null);
return new CertificateFactory((CertificateFactorySpi) engine.spi,
provider, type);
}
} catch (NoSuchAlgorithmException e) {
throw new CertificateException(e.getMessage());
}
|
public final java.security.Provider | getProvider()Returns the {@code Provider} of the certificate factory represented by
the certificate.
return provider;
|
public final java.lang.String | getType()Returns the Certificate type.
return type;
|