public abstract class AbstractX509Credential extends Object implements X509Credential
X509Credential
implementations.Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
static char[] |
KEY_PASSWD |
protected KeyStore |
ks |
Constructor and Description |
---|
AbstractX509Credential() |
Modifier and Type | Method and Description |
---|---|
X509Certificate |
getCertificate()
Helper method to get certificate from the underlying keystore
|
X509Certificate[] |
getCertificateChain()
Helper method to get certificate chain from the underlying keystore
|
PrivateKey |
getKey()
Helper method to get private key from the underlying keystore
|
String |
getKeyAlias()
Returns an alias which can be used to obtain the PrivateKey entry
from the KeyStore returned by the
X509Credential.getKeyStore() method. |
X509ExtendedKeyManager |
getKeyManager()
Returns a KeyManager which accompanies the KeyStore.
|
char[] |
getKeyPassword()
Returns a password which can be used to obtain PrivateKey entry
from the KeyStore returned by the
X509Credential.getKeyStore() method,
with the alias returned by the X509Credential.getKeyAlias() method. |
KeyStore |
getKeyStore()
Returns the credential in a keystore.
|
String |
getSubjectName() |
public static final String ALIAS
public static final char[] KEY_PASSWD
protected KeyStore ks
public KeyStore getKeyStore()
getKeyStore
in interface X509Credential
public X509ExtendedKeyManager getKeyManager()
getKeyManager
in interface X509Credential
public char[] getKeyPassword()
X509Credential.getKeyStore()
method,
with the alias returned by the X509Credential.getKeyAlias()
method.getKeyPassword
in interface X509Credential
public String getKeyAlias()
X509Credential.getKeyStore()
method.getKeyAlias
in interface X509Credential
public PrivateKey getKey()
getKey
in interface X509Credential
public X509Certificate getCertificate()
getCertificate
in interface X509Credential
public X509Certificate[] getCertificateChain()
getCertificateChain
in interface X509Credential
public String getSubjectName()
getSubjectName
in interface X509Credential
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.