org.apache.wss4j.stax.impl.securityToken
Class SamlSecurityTokenImpl

java.lang.Object
  extended by org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
      extended by org.apache.xml.security.stax.impl.securityToken.AbstractInboundSecurityToken
          extended by 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


Field Summary
 
Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
keyTable, tokenUsages
 
Constructor Summary
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
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()
           
 void verify()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken
addTokenUsage, getId, getKeyIdentifier, getKeyWrappingToken, getSecretKey, getSha1Identifier, getTokenUsages, getWrappedTokens
 

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:
isAsymmetric in interface org.apache.xml.security.stax.securityToken.SecurityToken
Overrides:
isAsymmetric in class org.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:
getKey in class org.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:
getPubKey in class org.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:
getPublicKey in interface org.apache.xml.security.stax.securityToken.SecurityToken
Overrides:
getPublicKey in class org.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:
getX509Certificates in interface org.apache.xml.security.stax.securityToken.SecurityToken
Overrides:
getX509Certificates in class org.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:
verify in interface org.apache.xml.security.stax.securityToken.InboundSecurityToken
Overrides:
verify in class org.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:
getTokenType in interface org.apache.xml.security.stax.securityToken.SecurityToken

getSubject

public Subject getSubject()
                   throws WSSecurityException
Specified by:
getSubject in interface SubjectAndPrincipalSecurityToken
Throws:
WSSecurityException

getPrincipal

public Principal getPrincipal()
                       throws WSSecurityException
Specified by:
getPrincipal in interface SubjectAndPrincipalSecurityToken
Throws:
WSSecurityException

getSamlAssertionWrapper

public SamlAssertionWrapper getSamlAssertionWrapper()
Specified by:
getSamlAssertionWrapper in interface SamlSecurityToken


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.