|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ProfileTokenImpl interface provides the template for classes implementing behavior delegated by a ProfileTokenCredential.
Method Summary | |
byte[] |
exchangeSeed(byte[] seed)
Exchange a random seed with the caller. |
byte[] |
generateToken(java.lang.String uid,
byte[] pwd,
int type,
int timeoutInterval)
Generates and returns a new profile token based on the provided information. |
byte[] |
refresh(int type,
int timeoutInterval)
Updates or extends the validity period for the credential. |
Methods inherited from interface com.ibm.as400.security.auth.AS400CredentialImpl |
destroy,
getTimeToExpiration,
getVersion,
isCurrent,
refresh,
setCredential,
swap |
Method Detail |
public byte[] exchangeSeed(byte[] seed)
seed
- The caller seed.public byte[] generateToken(java.lang.String uid, byte[] pwd, int type, int timeoutInterval) throws RetrieveFailedException
uid
- The name of the user profile for which the token
is to be generated.pwd
- The user profile password (encoded).type
- The type of token.
Possible types are defined as fields on the ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration.public byte[] refresh(int type, int timeoutInterval) throws RefreshFailedException
Generates a new profile token based on the previously established token with the given type and timeoutInterval.
This method is provided to handle cases where it is desirable to allow for a more restrictive type of token or a different timeout interval when a new token is generated during the refresh.
type
- The type of token.
Possible types are defined as fields on this class:
timeoutInterval
- The number of seconds before expiration.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |