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