org.apache.wss4j.policy.model
Class AbstractToken

java.lang.Object
  extended by org.apache.wss4j.policy.model.AbstractSecurityAssertion
      extended by org.apache.wss4j.policy.model.AbstractToken
All Implemented Interfaces:
org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent, org.apache.neethi.PolicyContainingAssertion
Direct Known Subclasses:
HttpsToken, IssuedToken, KerberosToken, KeyValueToken, RelToken, SamlToken, SecurityContextToken, SpnegoContextToken, UsernameToken, X509Token

public abstract class AbstractToken
extends AbstractSecurityAssertion
implements org.apache.neethi.PolicyContainingAssertion


Nested Class Summary
static class AbstractToken.DerivedKeys
           
 
Constructor Summary
protected AbstractToken(SPConstants.SPVersion version, SPConstants.IncludeTokenType includeTokenType, Element issuer, String issuerName, Element claims, org.apache.neethi.Policy nestedPolicy)
           
 
Method Summary
 Element getClaims()
           
 AbstractToken.DerivedKeys getDerivedKeys()
           
 SPConstants.IncludeTokenType getIncludeTokenType()
           
 Element getIssuer()
           
 String getIssuerName()
           
 AbstractSecurityAssertion getParentAssertion()
           
 org.apache.neethi.Policy getPolicy()
           
 org.apache.neethi.PolicyComponent normalize()
           
 void serialize(XMLStreamWriter writer)
           
protected  void setClaims(Element claims)
           
protected  void setDerivedKeys(AbstractToken.DerivedKeys derivedKeys)
           
protected  void setIncludeTokenType(SPConstants.IncludeTokenType includeTokenType)
           
protected  void setIssuer(Element issuer)
           
protected  void setIssuerName(String issuerName)
           
 void setParentAssertion(AbstractSecurityAssertion parentAssertion)
           
 
Methods inherited from class org.apache.wss4j.policy.model.AbstractSecurityAssertion
clone, cloneAssertion, equal, getType, getVersion, isAsserted, isIgnorable, isNormalized, isOptional, normalize, serialize, setIgnorable, setOptional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.neethi.Assertion
getName, isIgnorable, isOptional
 
Methods inherited from interface org.apache.neethi.PolicyComponent
equal, getType
 

Constructor Detail

AbstractToken

protected AbstractToken(SPConstants.SPVersion version,
                        SPConstants.IncludeTokenType includeTokenType,
                        Element issuer,
                        String issuerName,
                        Element claims,
                        org.apache.neethi.Policy nestedPolicy)
Method Detail

getPolicy

public org.apache.neethi.Policy getPolicy()
Specified by:
getPolicy in interface org.apache.neethi.PolicyContainingAssertion

normalize

public org.apache.neethi.PolicyComponent normalize()
Specified by:
normalize in interface org.apache.neethi.Assertion
Overrides:
normalize in class AbstractSecurityAssertion

getIncludeTokenType

public SPConstants.IncludeTokenType getIncludeTokenType()

setIncludeTokenType

protected void setIncludeTokenType(SPConstants.IncludeTokenType includeTokenType)

getIssuer

public Element getIssuer()

setIssuer

protected void setIssuer(Element issuer)

getIssuerName

public String getIssuerName()

setIssuerName

protected void setIssuerName(String issuerName)

getClaims

public Element getClaims()

setClaims

protected void setClaims(Element claims)

getDerivedKeys

public AbstractToken.DerivedKeys getDerivedKeys()

setDerivedKeys

protected void setDerivedKeys(AbstractToken.DerivedKeys derivedKeys)

getParentAssertion

public AbstractSecurityAssertion getParentAssertion()

setParentAssertion

public void setParentAssertion(AbstractSecurityAssertion parentAssertion)

serialize

public void serialize(XMLStreamWriter writer)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.neethi.Assertion
Specified by:
serialize in interface org.apache.neethi.PolicyComponent
Throws:
XMLStreamException


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