Java API
HSM Dinamo
Loading...
Looking for...
No entries found
TacAccessToken Class Reference

Public Methods

 TacAccessToken ()
 
 TacAccessToken (byte[] dnAToken) throws TacException
 
void setRawAccessToken (byte[] dnAToken) throws TacException
 
byte[] getFullAToken ()
 
byte[] getAToken ()
 
String getStrUserName ()
 
void setStrUserName (String UserName) throws TacException
 
byte[] getKey ()
 
void setKey (byte[] pbKey) throws TacException
 
long getExpiration ()
 
void setExpiration (long Expiration) throws TacException
 

Builders and Destructors

TacAccessToken() [1/2]

TacAccessToken() [2/2]

TacAccessToken ( byte[] dnAToken) throws TacException
Parameters
dnATokenThe AToken(DN_A_TOKEN structure) or Full AToken(DN_A_TOKEN_FULL structure) to initialize this class
Exceptions
TacException

Function documentation

setRawAccessToken()

void setRawAccessToken ( byte[] dnAToken) throws TacException
Parameters
dnATokenThe AToken(DN_A_TOKEN structure) or Full AToken(DN_A_TOKEN_FULL structure) to initialize this class
Exceptions
TacException

getFullAToken()

byte[] getFullAToken ( )
Return
o Full AToken (structure DN_A_TOKEN_FULL)

getAToken()

byte[] getAToken ( )
Return
the AToken (structure DN_A_TOKEN)

getStrUserName()

String getStrUserName ( )
Return
the AToken user name. User identification in HSM.

setStrUserName()

void setStrUserName ( String UserName) throws TacException
Parameters
UserNamethe user name that will be defined in AToken. User identification in the HSM.
Exceptions
TacException

getKey()

byte[] getKey ( )
Return
the AToken access key

setKey()

void setKey ( byte[] pbKey) throws TacException
Parameters
pbKeythe access key that will be defined in AToken.
Exceptions
TacException

getExpiration()

long getExpiration ( )
Return
the expiration of the AToken. Expiration date in date/time format; time_t. Number of seconds since UTC January 1, 1970

setExpiration()

void setExpiration ( long Expiration) throws TacException
Parameters
Expirationthe expiration date to be set in AToken. Expiration date in date/time format; time_t. Number of seconds since UTC January 1, 1970
Exceptions
TacException