public class X509KeyManagerX509CredentialAdapter extends AbstractCredential implements X509Credential
X509KeyManager
and exposes it as an X509Credential
.Modifier and Type | Field and Description |
---|---|
private String |
credentialAlias
Alias used to reference the credential in the key manager.
|
private X509KeyManager |
keyManager
Wrapped key manager.
|
Constructor and Description |
---|
X509KeyManagerX509CredentialAdapter(X509KeyManager manager,
String alias)
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 final String credentialAlias
private final X509KeyManager keyManager
public X509KeyManagerX509CredentialAdapter(@Nonnull X509KeyManager manager, @Nonnull String alias)
manager
- wrapped key manageralias
- alias used to reference the credential in the key manager@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.