public abstract class X509SecurityTokenImpl extends org.apache.xml.security.stax.impl.securityToken.X509SecurityToken implements X509SecurityToken
Modifier | Constructor and Description |
---|---|
protected |
X509SecurityTokenImpl(org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType,
WSInboundSecurityContext wsInboundSecurityContext,
Crypto crypto,
CallbackHandler callbackHandler,
String id,
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier,
WSSSecurityProperties securityProperties,
boolean includedInMessage) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getAlias() |
CallbackHandler |
getCallbackHandler() |
protected Crypto |
getCrypto() |
Key |
getKey(String algorithmURI,
org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage,
String correlationID) |
Principal |
getPrincipal() |
Subject |
getSubject() |
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType |
getTokenType() |
X509Certificate[] |
getX509Certificates() |
protected boolean |
matches(X509Certificate cert,
Collection<Pattern> subjectDNPatterns) |
protected boolean |
matchesIssuerDnPattern(X509Certificate cert,
Collection<Pattern> issuerDNPatterns) |
protected void |
setCrypto(Crypto crypto) |
void |
verify() |
isAsymmetric
addTokenUsage, addWrappedToken, getElementPath, getKeyIdentifier, getKeyWrappingToken, getPubKey, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, isIncludedInMessage, setElementPath, setKeyWrappingToken, setXMLSecEvent
getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
protected X509SecurityTokenImpl(org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType, WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier, WSSSecurityProperties securityProperties, boolean includedInMessage)
protected Crypto getCrypto()
protected void setCrypto(Crypto crypto)
public CallbackHandler getCallbackHandler()
public Key getKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws org.apache.xml.security.exceptions.XMLSecurityException
getKey
in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
org.apache.xml.security.exceptions.XMLSecurityException
public X509Certificate[] getX509Certificates() throws org.apache.xml.security.exceptions.XMLSecurityException
getX509Certificates
in interface org.apache.xml.security.stax.securityToken.SecurityToken
getX509Certificates
in class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
org.apache.xml.security.exceptions.XMLSecurityException
public void verify() throws org.apache.xml.security.exceptions.XMLSecurityException
verify
in interface org.apache.xml.security.stax.securityToken.InboundSecurityToken
verify
in class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
org.apache.xml.security.exceptions.XMLSecurityException
protected boolean matchesIssuerDnPattern(X509Certificate cert, Collection<Pattern> issuerDNPatterns)
protected boolean matches(X509Certificate cert, Collection<Pattern> subjectDNPatterns)
protected abstract String getAlias() throws org.apache.xml.security.exceptions.XMLSecurityException
org.apache.xml.security.exceptions.XMLSecurityException
public Subject getSubject() throws WSSecurityException
getSubject
in interface SubjectAndPrincipalSecurityToken
WSSecurityException
public Principal getPrincipal() throws WSSecurityException
getPrincipal
in interface SubjectAndPrincipalSecurityToken
WSSecurityException
public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
getTokenType
in interface org.apache.xml.security.stax.securityToken.SecurityToken
getTokenType
in class org.apache.xml.security.stax.impl.securityToken.X509SecurityToken
Copyright © 2017 JBoss by Red Hat. All rights reserved.