Class SamlSecurityTokenImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
-
- org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
-
- org.apache.wss4j.stax.impl.securityToken.SamlSecurityTokenImpl
-
- All Implemented Interfaces:
SamlSecurityToken,SubjectAndPrincipalSecurityToken,org.apache.xml.security.stax.securityToken.InboundSecurityToken,org.apache.xml.security.stax.securityToken.SecurityToken
public class SamlSecurityTokenImpl extends org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken implements SamlSecurityToken
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeygetKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID)PrincipalgetPrincipal()protected PublicKeygetPubKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID)PublicKeygetPublicKey()SamlAssertionWrappergetSamlAssertionWrapper()SubjectgetSubject()org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenTypegetTokenType()X509Certificate[]getX509Certificates()booleanisAsymmetric()voidverify()-
Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
addTokenUsage, addWrappedToken, getElementPath, getKeyIdentifier, getKeyWrappingToken, getPublicKey, getSecretKey, getWrappedTokens, getXMLSecEvent, isIncludedInMessage, setElementPath, setKeyWrappingToken, setXMLSecEvent
-
Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
getId, getSecretKey, getSha1Identifier, getTokenUsages, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
-
-
-
-
Constructor Detail
-
SamlSecurityTokenImpl
public SamlSecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier, WSSSecurityProperties securityProperties) throws WSSecurityException
- Throws:
WSSecurityException
-
SamlSecurityTokenImpl
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)
-
-
Method Detail
-
isAsymmetric
public boolean isAsymmetric() throws org.apache.xml.security.exceptions.XMLSecurityException- Specified by:
isAsymmetricin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
isAsymmetricin classorg.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getKey
protected Key getKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws org.apache.xml.security.exceptions.XMLSecurityException
- Overrides:
getKeyin classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getPubKey
protected PublicKey getPubKey(String algorithmURI, org.apache.xml.security.stax.ext.XMLSecurityConstants.AlgorithmUsage algorithmUsage, String correlationID) throws org.apache.xml.security.exceptions.XMLSecurityException
- Overrides:
getPubKeyin classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getPublicKey
public PublicKey getPublicKey() throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
getPublicKeyin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
getPublicKeyin classorg.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getX509Certificates
public X509Certificate[] getX509Certificates() throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
getX509Certificatesin interfaceorg.apache.xml.security.stax.securityToken.SecurityToken- Overrides:
getX509Certificatesin classorg.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
verify
public void verify() throws org.apache.xml.security.exceptions.XMLSecurityException- Specified by:
verifyin interfaceorg.apache.xml.security.stax.securityToken.InboundSecurityToken- Overrides:
verifyin classorg.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
getTokenType
public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType getTokenType()
- Specified by:
getTokenTypein interfaceorg.apache.xml.security.stax.securityToken.SecurityToken
-
getSubject
public Subject getSubject() throws WSSecurityException
- Specified by:
getSubjectin interfaceSubjectAndPrincipalSecurityToken- Throws:
WSSecurityException
-
getPrincipal
public Principal getPrincipal() throws WSSecurityException
- Specified by:
getPrincipalin interfaceSubjectAndPrincipalSecurityToken- Throws:
WSSecurityException
-
getSamlAssertionWrapper
public SamlAssertionWrapper getSamlAssertionWrapper()
- Specified by:
getSamlAssertionWrapperin interfaceSamlSecurityToken
-
-