org.apache.wss4j.policy.stax.assertionStates
Class IssuedTokenAssertionState

java.lang.Object
  extended by org.apache.wss4j.policy.AssertionState
      extended by org.apache.wss4j.policy.stax.assertionStates.TokenAssertionState
          extended by org.apache.wss4j.policy.stax.assertionStates.IssuedTokenAssertionState
All Implemented Interfaces:
Assertable

public class IssuedTokenAssertionState
extends TokenAssertionState

WSP1.3, 5.4.2 IssuedToken Assertion


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wss4j.policy.AssertionState
AssertionState.State
 
Constructor Summary
IssuedTokenAssertionState(AbstractSecurityAssertion assertion, boolean asserted, PolicyAsserter policyAsserter, boolean initiator)
           
 
Method Summary
 boolean assertToken(org.apache.xml.security.stax.securityEvent.TokenSecurityEvent<? extends org.apache.xml.security.stax.securityToken.SecurityToken> tokenSecurityEvent, AbstractToken abstractToken)
           
protected  String checkIssuedTokenTemplate(Element template, SamlTokenSecurityEvent samlTokenSecurityEvent)
          Check the issued token template against the received assertion
protected  String findClaimInAssertion(org.opensaml.saml2.core.Assertion assertion, URI claimURI)
           
protected  String findClaimInAssertion(org.opensaml.saml1.core.Assertion assertion, URI claimURI)
           
protected  String findClaimInAssertion(org.apache.wss4j.common.saml.SamlAssertionWrapper samlAssertionWrapper, URI claimURI)
           
 org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event[] getSecurityEventType()
           
protected  String validateClaims(Element claimsPolicy, SamlTokenSecurityEvent samlTokenSecurityEvent)
           
 
Methods inherited from class org.apache.wss4j.policy.stax.assertionStates.TokenAssertionState
assertEvent, getPolicyAsserter, hasDerivedKeys, isInitiator
 
Methods inherited from class org.apache.wss4j.policy.AssertionState
clearErrorMessage, getAssertion, getErrorMessage, isAsserted, isHardFailure, isLogged, setAsserted, setErrorMessage, setLogged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wss4j.policy.stax.Assertable
getErrorMessage, isAsserted, isHardFailure, isLogged, setLogged
 

Constructor Detail

IssuedTokenAssertionState

public IssuedTokenAssertionState(AbstractSecurityAssertion assertion,
                                 boolean asserted,
                                 PolicyAsserter policyAsserter,
                                 boolean initiator)
Method Detail

getSecurityEventType

public org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event[] getSecurityEventType()

assertToken

public boolean assertToken(org.apache.xml.security.stax.securityEvent.TokenSecurityEvent<? extends org.apache.xml.security.stax.securityToken.SecurityToken> tokenSecurityEvent,
                           AbstractToken abstractToken)
                    throws org.apache.wss4j.common.WSSPolicyException
Specified by:
assertToken in class TokenAssertionState
Throws:
org.apache.wss4j.common.WSSPolicyException

checkIssuedTokenTemplate

protected String checkIssuedTokenTemplate(Element template,
                                          SamlTokenSecurityEvent samlTokenSecurityEvent)
                                   throws org.apache.xml.security.exceptions.XMLSecurityException
Check the issued token template against the received assertion

Throws:
org.apache.xml.security.exceptions.XMLSecurityException

validateClaims

protected String validateClaims(Element claimsPolicy,
                                SamlTokenSecurityEvent samlTokenSecurityEvent)
                         throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

findClaimInAssertion

protected String findClaimInAssertion(org.apache.wss4j.common.saml.SamlAssertionWrapper samlAssertionWrapper,
                                      URI claimURI)

findClaimInAssertion

protected String findClaimInAssertion(org.opensaml.saml2.core.Assertion assertion,
                                      URI claimURI)

findClaimInAssertion

protected String findClaimInAssertion(org.opensaml.saml1.core.Assertion assertion,
                                      URI claimURI)


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