public class KeyStoreX509CredentialAdapter extends AbstractCredential implements X509Credential
KeyStore in to a X509Credential.| Modifier and Type | Field and Description |
|---|---|
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 org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
KeyStoreX509CredentialAdapter(KeyStore store,
String alias,
char[] password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Credential> |
getCredentialType() |
Collection<X509CRL> |
getCRLs() |
X509Certificate |
getEntityCertificate() |
Collection<X509Certificate> |
getEntityCertificateChain() |
PrivateKey |
getPrivateKey() |
PublicKey |
getPublicKey() |
void |
setEntityId(String newEntityID) |
void |
setUsageType(UsageType newUsageType) |
getCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType, setPrivateKey, setPublicKey, setSecretKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageTypeprivate org.slf4j.Logger log
private final KeyStore keyStore
private final String credentialAlias
private final char[] keyPassword
public KeyStoreX509CredentialAdapter(@Nonnull @ParameterName(name="store") KeyStore store, @Nonnull @ParameterName(name="alias") String alias, @Nullable @ParameterName(name="password") char[] password)
store - store containing key to be exposedalias - alias to the credential to be exposedpassword - password to the key to be exposed@Nullable public Collection<X509CRL> getCRLs()
getCRLs in interface X509Credential@Nonnull public X509Certificate getEntityCertificate()
getEntityCertificate in interface X509Credential@Nonnull public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credential@Nullable public PrivateKey getPrivateKey()
getPrivateKey in interface CredentialgetPrivateKey in class AbstractCredential@Nullable public PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredential@Nonnull public Class<? extends Credential> getCredentialType()
getCredentialType in interface Credentialpublic void setEntityId(@Nullable String newEntityID)
setEntityId in class AbstractCredentialpublic void setUsageType(@Nonnull UsageType newUsageType)
setUsageType in class AbstractCredentialCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.