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, setSecretKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialContextSet, getEntityId, getKeyNames, getSecretKey, getUsageType
private org.slf4j.Logger log
private final KeyStore keyStore
private final String credentialAlias
private final char[] keyPassword
public KeyStoreX509CredentialAdapter(@Nonnull KeyStore store, @Nonnull String alias, @Nullable 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 Credential
getPrivateKey
in class AbstractCredential
@Nullable public PublicKey getPublicKey()
getPublicKey
in interface Credential
getPublicKey
in class AbstractCredential
@Nonnull public Class<? extends Credential> getCredentialType()
getCredentialType
in interface Credential
public void setEntityId(@Nullable String newEntityID)
setEntityId
in class AbstractCredential
public void setUsageType(@Nonnull UsageType newUsageType)
setUsageType
in class AbstractCredential
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.