Apache CXF API

org.apache.cxf.sts.token.renewer
Class TokenRenewerResponse

java.lang.Object
  extended by org.apache.cxf.sts.token.renewer.TokenRenewerResponse

public class TokenRenewerResponse
extends Object

This class encapsulates the response from a TokenRenewer instance after renewing a token.


Constructor Summary
TokenRenewerResponse()
           
 
Method Summary
 TokenReference getAttachedReference()
          Get the attached TokenReference
 Date getCreated()
          Get the Date that this Token was Created
 Date getExpires()
          Get the Date that this Token expires
 long getLifetime()
          Deprecated. use getCreated/getExpires instead
 Element getToken()
          Get the token
 String getTokenId()
          Get the token Id
 TokenReference getUnAttachedReference()
          Get the unattached TokenReference
 void setAttachedReference(TokenReference attachedReference)
          Set the attached TokenReference
 void setCreated(Date created)
          Set the Date that this Token was Created
 void setExpires(Date expires)
          Set the Date that this Token expires
 void setLifetime(long lifetime)
          Deprecated. use setCreated/setExpires instead
 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

TokenRenewerResponse

public TokenRenewerResponse()
Method Detail

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

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

getCreated

public Date getCreated()
Get the Date that this Token was Created

Returns:
the Date that this Token was Created

setCreated

public void setCreated(Date created)
Set the Date that this Token was Created

Parameters:
created - the Date that this Token was Created

getExpires

public Date getExpires()
Get the Date that this Token expires

Returns:
the Date that this Token expires

setExpires

public void setExpires(Date expires)
Set the Date that this Token expires

Parameters:
expires - the Date that this Token expires

setLifetime

public void setLifetime(long lifetime)
Deprecated. use setCreated/setExpires instead

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()
Deprecated. use getCreated/getExpires instead

Get the lifetime of the Token to be returned in seconds

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

Apache CXF API

Apache CXF