PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.sts.registry
Class SecurityToken

java.lang.Object
  extended by org.picketlink.identity.federation.core.sts.registry.SecurityToken

@Entity
public class SecurityToken
extends Object

SecurityToken is a simple JPA entity used by the JPABasedTokenRegistry to persist tokens.

Author:
Pedro Silva

Constructor Summary
SecurityToken()
           Default constructor.
SecurityToken(String tokenId, Object token)
           
 
Method Summary
 byte[] getToken()
          Gets the byte array representation of the token object.
 Date getTokenCreationDate()
          Gets the Date which this token was created.
 String getTokenId()
           Obtains the id of the revoked security token.
 void setToken(byte[] token)
          Sets the byte array representation of the token object.
 void setTokenCreationDate(Date tokenCreationDate)
          Sets the Date which this token was created.
 void setTokenId(String tokenId)
           Sets the id of the revoked security token.
 Object unmarshalToken()
           Unmarshall the token byte array to a AssertionType instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityToken

public SecurityToken()

Default constructor.


SecurityToken

public SecurityToken(String tokenId,
                     Object token)
Method Detail

getTokenId

public String getTokenId()

Obtains the id of the revoked security token.

Returns:
a String containing the revoked token id.

setTokenId

public void setTokenId(String tokenId)

Sets the id of the revoked security token.

Parameters:
tokenId - a String containing the id to be set.

getTokenCreationDate

public Date getTokenCreationDate()

Gets the Date which this token was created.

Returns:

setTokenCreationDate

public void setTokenCreationDate(Date tokenCreationDate)

Sets the Date which this token was created.

Parameters:
tokenCreationDate -

setToken

public void setToken(byte[] token)

Sets the byte array representation of the token object.

Parameters:
token -

getToken

public byte[] getToken()

Gets the byte array representation of the token object.

Returns:

unmarshalToken

public Object unmarshalToken()

Unmarshall the token byte array to a AssertionType instance.

Returns:

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.