public class ServletRequestX509CredentialAdapter extends AbstractCredential implements X509Credential
Modifier and Type | Field and Description |
---|---|
static String |
X509_CERT_REQUEST_ATTRIBUTE
Servlet request attribute to pull certificate info from.
|
Constructor and Description |
---|
ServletRequestX509CredentialAdapter(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, setUsageType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getSecretKey, getUsageType
public static final String X509_CERT_REQUEST_ATTRIBUTE
public ServletRequestX509CredentialAdapter(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 Credential
public X509Certificate getEntityCertificate()
Credential.getPublicKey()
.getEntityCertificate
in interface X509Credential
public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain
in interface X509Credential
public Collection<X509CRL> getCRLs()
getCRLs
in interface X509Credential
public PublicKey getPublicKey()
getPublicKey
in interface Credential
getPublicKey
in class AbstractCredential
Copyright © 2016 JBoss by Red Hat. All rights reserved.