Package | Description |
---|---|
eu.emi.security.authn.x509.helpers.trust |
Contains implementations of trust stores, which provide access to trusted root
certificates.
|
eu.emi.security.authn.x509.impl |
Contains implementation classes of the library.
|
Modifier and Type | Field and Description |
---|---|
protected CertificateUtils.Encoding |
DirectoryTrustAnchorStore.encoding |
Modifier and Type | Method and Description |
---|---|
CertificateUtils.Encoding |
DirectoryTrustAnchorStore.getEncoding() |
Constructor and Description |
---|
DirectoryTrustAnchorStore(java.util.List<java.lang.String> locations,
java.lang.String diskCache,
int connectionTimeout,
java.util.Timer t,
long updateInterval,
CertificateUtils.Encoding encoding,
ObserversHandler listeners) |
DirectoryTrustAnchorStore(java.util.List<java.lang.String> locations,
java.lang.String diskCache,
int connectionTimeout,
java.util.Timer t,
long updateInterval,
CertificateUtils.Encoding encoding,
ObserversHandler observers,
boolean noFirstUpdate) |
Modifier and Type | Method and Description |
---|---|
static CertificateUtils.Encoding |
CertificateUtils.Encoding.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CertificateUtils.Encoding[] |
CertificateUtils.Encoding.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.security.cert.X509Certificate |
CertificateUtils.loadCertificate(java.io.InputStream is,
CertificateUtils.Encoding format)
Loads a single certificate from the provided input stream.
|
static java.security.cert.X509Certificate[] |
CertificateUtils.loadCertificateChain(java.io.InputStream is,
CertificateUtils.Encoding format)
Loads a chain of certificates from the provided input stream.
|
static java.security.cert.X509Certificate[] |
CertificateUtils.loadCertificates(java.io.InputStream is,
CertificateUtils.Encoding format)
Loads a set of (possibly unrelated to each other) certificates from the provided input stream.
|
static java.security.PrivateKey |
CertificateUtils.loadPrivateKey(java.io.InputStream is,
CertificateUtils.Encoding format,
char[] password)
Loads a private key from the provided input stream.
|
static void |
CertificateUtils.saveCertificate(java.io.OutputStream os,
java.security.cert.X509Certificate cert,
CertificateUtils.Encoding format)
Saves the provided certificate to the output file, using the requested encoding.
|
static void |
CertificateUtils.saveCertificateChain(java.io.OutputStream os,
java.security.cert.X509Certificate[] chain,
CertificateUtils.Encoding format)
Saves the provided certificate chain to the output stream, using the requested
encoding.
|
static void |
CertificateUtils.savePrivateKey(java.io.OutputStream os,
java.security.PrivateKey pk,
CertificateUtils.Encoding format,
java.lang.String encryptionAlg,
char[] encryptionPassword)
As
CertificateUtils.savePrivateKey(OutputStream, PrivateKey, Encoding, String, char[], boolean) with
the last argument equal to false |
static void |
CertificateUtils.savePrivateKey(java.io.OutputStream os,
java.security.PrivateKey pk,
CertificateUtils.Encoding format,
java.lang.String encryptionAlg,
char[] encryptionPassword,
boolean opensslLegacyFormat)
Saves the provided private key to the output file, using the requested encoding.
|
Constructor and Description |
---|
DirectoryCertChainValidator(java.util.List<java.lang.String> trustedLocations,
CertificateUtils.Encoding encoding,
long truststoreUpdateInterval,
int connectionTimeoutCA,
java.lang.String diskCache)
Constructs a new validator instance with default additional settings
(see
ValidatorParamsExt.ValidatorParamsExt() ). |
DirectoryCertChainValidator(java.util.List<java.lang.String> trustedLocations,
CertificateUtils.Encoding encoding,
long truststoreUpdateInterval,
int connectionTimeoutCA,
java.lang.String diskCache,
ValidatorParamsExt params)
Constructs a new validator instance.
|