Package org.opensaml.security.x509.impl
Class KeyStoreX509CredentialAdapter
java.lang.Object
org.opensaml.security.credential.AbstractCredential
org.opensaml.security.x509.impl.KeyStoreX509CredentialAdapter
- All Implemented Interfaces:
Credential,X509Credential
A wrapper that changes a
KeyStore in to a X509Credential.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreX509CredentialAdapter(KeyStore store, String alias, char[] password) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Credential>getCRLs()voidsetEntityId(String newEntityID) voidsetUsageType(UsageType newUsageType) Methods inherited from class org.opensaml.security.credential.AbstractCredential
getCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType, setPrivateKey, setPublicKey, setSecretKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.security.credential.Credential
getCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
keyStore
Keystore that contains the credential to be exposed. -
credentialAlias
Alias to the credential to be exposed. -
keyPassword
@Nullable private final char[] keyPasswordPassword for the key to be exposed.
-
-
Constructor Details
-
KeyStoreX509CredentialAdapter
public KeyStoreX509CredentialAdapter(@Nonnull @ParameterName(name="store") KeyStore store, @Nonnull @ParameterName(name="alias") String alias, @Nullable @ParameterName(name="password") char[] password) Constructor.- Parameters:
store- store containing key to be exposedalias- alias to the credential to be exposedpassword- password to the key to be exposed
-
-
Method Details
-
getCRLs
- Specified by:
getCRLsin interfaceX509Credential
-
getEntityCertificate
- Specified by:
getEntityCertificatein interfaceX509Credential
-
getEntityCertificateChain
- Specified by:
getEntityCertificateChainin interfaceX509Credential
-
getPrivateKey
- Specified by:
getPrivateKeyin interfaceCredential- Overrides:
getPrivateKeyin classAbstractCredential
-
getPublicKey
- Specified by:
getPublicKeyin interfaceCredential- Overrides:
getPublicKeyin classAbstractCredential
-
getCredentialType
- Specified by:
getCredentialTypein interfaceCredential
-
setEntityId
- Overrides:
setEntityIdin classAbstractCredential
-
setUsageType
- Overrides:
setUsageTypein classAbstractCredential
-