ProfileTokenCredential
public interface AS400BasicAuthenticationCredential
Modifier and Type | Method | Description |
---|---|---|
String[] |
basicAuthenticationPrompt() |
Returns text that can be displayed to prompt for the basic user
and password information used to initialize the credential.
|
void |
initialize(AS400BasicAuthenticationPrincipal principal,
char[] password,
boolean isPrivate,
boolean isReusable,
boolean isRenewable,
int timeoutInterval) |
Initializes and validates a credential for the local IBM i system.
|
void |
initialize(AS400BasicAuthenticationPrincipal principal,
String password,
boolean isPrivate,
boolean isReusable,
boolean isRenewable,
int timeoutInterval) |
Deprecated.
Use initialize(AS400BasicAuthenticationPrincipal principal, char[] password,
boolean isPrivate, boolean isReusable, boolean isRenewable,
int timeoutInterval) instead
|
boolean |
isPrivate() |
Indicates whether the credential is considered private.
|
String[] basicAuthenticationPrompt()
void initialize(AS400BasicAuthenticationPrincipal principal, String password, boolean isPrivate, boolean isReusable, boolean isRenewable, int timeoutInterval) throws Exception
principal
- The principal identifying the authenticated user.password
- The password for the authenticated user.isPrivate
- Indicates whether the credential is considered private.isReusable
- true if the credential can be used to swap
thread identity multiple times;
otherwise false.isRenewable
- true if the validity period of the credential
can be programmatically updated or extended;
otherwise false.timeoutInterval
- The number of seconds to expiration when the credential
is initially created; ignored if the credential
does not expire based on time.Exception
- If an exception occurs.void initialize(AS400BasicAuthenticationPrincipal principal, char[] password, boolean isPrivate, boolean isReusable, boolean isRenewable, int timeoutInterval) throws Exception
principal
- The principal identifying the authenticated user.password
- The password for the authenticated user.isPrivate
- Indicates whether the credential is considered private.isReusable
- true if the credential can be used to swap
thread identity multiple times;
otherwise false.isRenewable
- true if the validity period of the credential
can be programmatically updated or extended;
otherwise false.timeoutInterval
- The number of seconds to expiration when the credential
is initially created; ignored if the credential
does not expire based on time.Exception
- If an exception occurs.boolean isPrivate()
This value can be referenced by authentication services as an indication of when to check permissions or otherwise protect access to sensitive credentials.
Copyright © 2024. All rights reserved.