org.apache.cxf.sts.token.provider
Class TokenProviderResponse

java.lang.Object
  extended by org.apache.cxf.sts.token.provider.TokenProviderResponse

public class TokenProviderResponse
extends Object

This class encapsulates the response from a TokenProvider instance after creating a token.


Constructor Summary
TokenProviderResponse()
           
 
Method Summary
 TokenReference getAttachedReference()
          Get the attached TokenReference
 byte[] getEntropy()
          Get the entropy associated with the token.
 long getKeySize()
          Get the KeySize that the TokenProvider set
 long getLifetime()
          Get the lifetime of the Token to be returned in seconds
 Element getToken()
          Get the token
 String getTokenId()
          Get the token Id
 TokenReference getUnAttachedReference()
          Get the unattached TokenReference
 boolean isComputedKey()
          Return true if the entropy represents a Computed Key.
 void setAttachedReference(TokenReference attachedReference)
          Set the attached TokenReference
 void setComputedKey(boolean computedKey)
          Set whether the entropy represents a Computed Key or not
 void setEntropy(byte[] entropy)
          Set the entropy associated with the token.
 void setKeySize(long keySize)
          Set the KeySize
 void setLifetime(long lifetime)
          Set the lifetime of the Token to be returned in seconds
 void setToken(Element token)
          Set the token
 void setTokenId(String tokenId)
          Set the token Id
 void setUnattachedReference(TokenReference unattachedReference)
          Set the unattached TokenReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenProviderResponse

public TokenProviderResponse()
Method Detail

isComputedKey

public boolean isComputedKey()
Return true if the entropy represents a Computed Key.


setComputedKey

public void setComputedKey(boolean computedKey)
Set whether the entropy represents a Computed Key or not


getKeySize

public long getKeySize()
Get the KeySize that the TokenProvider set


setKeySize

public void setKeySize(long keySize)
Set the KeySize


setToken

public void setToken(Element token)
Set the token

Parameters:
token - the token to set

getToken

public Element getToken()
Get the token

Returns:
the token to set

setTokenId

public void setTokenId(String tokenId)
Set the token Id

Parameters:
tokenId - the token Id

getTokenId

public String getTokenId()
Get the token Id

Returns:
the token Id

setLifetime

public void setLifetime(long lifetime)
Set the lifetime of the Token to be returned in seconds

Parameters:
lifetime - the lifetime of the Token to be returned in seconds

getLifetime

public long getLifetime()
Get the lifetime of the Token to be returned in seconds

Returns:
the lifetime of the Token to be returned in seconds

setEntropy

public void setEntropy(byte[] entropy)
Set the entropy associated with the token.

Parameters:
entropy - the entropy associated with the token.

getEntropy

public byte[] getEntropy()
Get the entropy associated with the token.

Returns:
the entropy associated with the token.

setAttachedReference

public void setAttachedReference(TokenReference attachedReference)
Set the attached TokenReference

Parameters:
attachtedReference - the attached TokenReference

getAttachedReference

public TokenReference getAttachedReference()
Get the attached TokenReference

Returns:
the attached TokenReference

setUnattachedReference

public void setUnattachedReference(TokenReference unattachedReference)
Set the unattached TokenReference

Parameters:
unAttachedReference - Set the unattached TokenReference

getUnAttachedReference

public TokenReference getUnAttachedReference()
Get the unattached TokenReference

Returns:
the unattached TokenReference


Apache CXF