|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.security.credential.AbstractCredential
org.opensaml.xml.security.credential.BasicCredential
org.opensaml.xml.security.x509.X509KeyManagerX509CredentialAdapter
public class X509KeyManagerX509CredentialAdapter
A class that wraps a X509KeyManager and exposes it as an X509Credential.
| Field Summary |
|---|
| Fields inherited from class org.opensaml.xml.security.credential.AbstractCredential |
|---|
credentialContextSet, entityID, keyNames, privateKey, publicKey, secretKey, usageType |
| Constructor Summary | |
|---|---|
X509KeyManagerX509CredentialAdapter(javax.net.ssl.X509KeyManager manager,
java.lang.String alias)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Collection<java.security.cert.X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential. |
java.security.cert.X509Certificate |
getEntityCertificate()
Gets the public certificate for the entity. |
java.util.Collection<java.security.cert.X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain. |
java.security.PrivateKey |
getPrivateKey()
Gets the private key for the entity if there is one. |
java.security.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 |
| Constructor Detail |
|---|
public X509KeyManagerX509CredentialAdapter(javax.net.ssl.X509KeyManager manager,
java.lang.String alias)
manager - wrapped key manageralias - alias used to reference the credential in the key manager| Method Detail |
|---|
public java.util.Collection<java.security.cert.X509CRL> getCRLs()
getCRLs in interface X509Credentialpublic java.security.cert.X509Certificate getEntityCertificate()
Credential.getPublicKey().
getEntityCertificate in interface X509Credentialpublic java.util.Collection<java.security.cert.X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credentialpublic java.security.PrivateKey getPrivateKey()
getPrivateKey in interface CredentialgetPrivateKey in class AbstractCredentialpublic java.security.PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredential
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||