Apache CXF API

org.apache.cxf.sts.request
Class ReceivedToken

java.lang.Object
  extended by org.apache.cxf.sts.request.ReceivedToken

public class ReceivedToken
extends Object

This class contains values that have been extracted from a received Token. The Token can be a JAXB UsernameTokenType/BinarySecurityTokenType or a DOM Element.


Nested Class Summary
static class ReceivedToken.STATE
           
 
Constructor Summary
ReceivedToken(Object receivedToken)
           
 
Method Summary
 Principal getPrincipal()
           
 ReceivedToken.STATE getState()
           
 Object getToken()
           
 String getTokenContext()
           
 boolean isBinarySecurityToken()
           
 boolean isDOMElement()
           
 boolean isUsernameToken()
           
 void setBinarySecurityToken(boolean binarySecurityToken)
           
 void setDOMElement(boolean domElement)
           
 void setPrincipal(Principal principal)
           
 void setState(ReceivedToken.STATE state)
           
 void setToken(Object token)
           
 void setTokenContext(String tokenContext)
           
 void setUsernameToken(boolean usernameToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivedToken

public ReceivedToken(Object receivedToken)
              throws STSException
Throws:
STSException
Method Detail

getToken

public Object getToken()

setToken

public void setToken(Object token)

isBinarySecurityToken

public boolean isBinarySecurityToken()

setBinarySecurityToken

public void setBinarySecurityToken(boolean binarySecurityToken)

isUsernameToken

public boolean isUsernameToken()

setUsernameToken

public void setUsernameToken(boolean usernameToken)

isDOMElement

public boolean isDOMElement()

setDOMElement

public void setDOMElement(boolean domElement)

getTokenContext

public String getTokenContext()

setTokenContext

public void setTokenContext(String tokenContext)

getState

public ReceivedToken.STATE getState()

setState

public void setState(ReceivedToken.STATE state)

getPrincipal

public Principal getPrincipal()

setPrincipal

public void setPrincipal(Principal principal)

Apache CXF API

Apache CXF