|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.credential.AbstractCredential org.opensaml.xml.security.credential.BasicCredential org.opensaml.xml.security.x509.KeyStoreX509CredentialAdapter
public class KeyStoreX509CredentialAdapter
A wrapper that changes a KeyStore
in to a X509Credential
.
Field Summary | |
---|---|
private String |
credentialAlias
Alias to the credential to be exposed. |
private char[] |
keyPassword
Password for the key to be exposed. |
private KeyStore |
keyStore
Keystore that contains the credential to be exposed. |
private Logger |
log
Class logger. |
Fields inherited from class org.opensaml.xml.security.credential.AbstractCredential |
---|
credentialContextSet, entityID, keyNames, privateKey, publicKey, secretKey, usageType |
Constructor Summary | |
---|---|
KeyStoreX509CredentialAdapter(KeyStore store,
String alias,
char[] password)
Constructor. |
Method Summary | |
---|---|
Collection<X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential. |
X509Certificate |
getEntityCertificate()
Gets the public certificate for the entity. |
Collection<X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain. |
PrivateKey |
getPrivateKey()
Gets the private key for the entity if there is one. |
PublicKey |
getPublicKey()
Gets the public key for the entity. |
Methods inherited from class org.opensaml.xml.security.credential.BasicCredential |
---|
getCredentialType, setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageType |
Methods inherited from class org.opensaml.xml.security.credential.AbstractCredential |
---|
getCredentalContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.xml.security.credential.Credential |
---|
getCredentalContextSet, getCredentialType, getEntityId, getKeyNames, getSecretKey, getUsageType |
Field Detail |
---|
private Logger log
private KeyStore keyStore
private String credentialAlias
private char[] keyPassword
Constructor Detail |
---|
public KeyStoreX509CredentialAdapter(KeyStore store, String alias, char[] password)
store
- store containing key to be exposedalias
- alias to the credential to be exposedpassword
- password to the key to be exposedMethod Detail |
---|
public Collection<X509CRL> getCRLs()
getCRLs
in interface X509Credential
public X509Certificate getEntityCertificate()
Credential.getPublicKey()
.
getEntityCertificate
in interface X509Credential
public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain
in interface X509Credential
public PrivateKey getPrivateKey()
getPrivateKey
in interface Credential
getPrivateKey
in class AbstractCredential
public PublicKey getPublicKey()
getPublicKey
in interface Credential
getPublicKey
in class AbstractCredential
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |