public class ServletRequestX509CredentialAdapter extends AbstractCredential implements X509Credential
| Modifier and Type | Field and Description |
|---|---|
private X509Certificate |
cert
The entity certificate.
|
private List<X509Certificate> |
certChain
The certificate chain.
|
static String |
X509_CERT_REQUEST_ATTRIBUTE
Servlet request attribute to pull certificate info from.
|
| Constructor and Description |
|---|
ServletRequestX509CredentialAdapter(javax.servlet.ServletRequest request)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Credential> |
getCredentialType()
Get the primary type of the credential instance.
|
Collection<X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential.
|
X509Certificate |
getEntityCertificate()
Gets the public key certificate for the entity.
|
Collection<X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain.
|
PublicKey |
getPublicKey()
Gets the public key for the entity.
|
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getSecretKey, getUsageType, setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getSecretKey, getUsageTypepublic static final String X509_CERT_REQUEST_ATTRIBUTE
private X509Certificate cert
private List<X509Certificate> certChain
public ServletRequestX509CredentialAdapter(javax.servlet.ServletRequest request)
throws SecurityException
request - the servlet requestSecurityException - if request does not contain an X.509 client certificate in
request attribute 'javax.servlet.request.X509Certificate'public Class<? extends Credential> getCredentialType()
Credential implemented by an implementation.getCredentialType in interface Credentialpublic X509Certificate getEntityCertificate()
Credential.getPublicKey().getEntityCertificate in interface X509Credentialpublic Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain in interface X509Credentialpublic Collection<X509CRL> getCRLs()
getCRLs in interface X509Credentialpublic PublicKey getPublicKey()
getPublicKey in interface CredentialgetPublicKey in class AbstractCredentialCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.