ProfileTokenProviderpublic class DefaultProfileTokenProvider extends Object implements ProfileTokenProvider
ProfileTokenProvider interface.| Constructor | Description |
|---|---|
DefaultProfileTokenProvider() |
Constructs a new DefaultProfileTokenProvider
|
DefaultProfileTokenProvider(AS400 system) |
Constructs a new DefaultProfileTokenProvider.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
checkFieldSet(int field,
String description) |
Validate the specified field is set, that is, not null.
|
protected void |
checkFieldSet(Object field,
String fieldName) |
Validate the specified field is set, that is, not null.
|
ProfileTokenCredential |
create() |
Creates and returns a new profile token credential.
|
Object |
getExtendedInfo() |
Retrieves any extended information used during the creation of the profile token credential.
|
AS400 |
getSystem() |
Retrieves the system that is used during the creation of the profile token credential.
|
int |
getTimeoutInterval() |
Retrieves the timeout interval that is specified during the creation of the profile token credential.
|
int |
getTokenType() |
Retrieves the token type that is specified during the creation of the profile token credential.
|
String |
getUserId() |
Retrieves the user ID that is specified during the creation of the profile token credential.
|
protected void |
setExtendedInfo(Object extendedInfo) |
Sets the extended information used during the creation of the profile token credential.
|
void |
setPassword(char[] password) |
Sets the password for the user ID that is used during the
creation of the profile token credential.
|
void |
setPassword(String password) |
Deprecated.
Use setPassword(char[] password) instead
|
void |
setPasswordSpecialValue(int specialValue) |
Sets the password special value to be used during the creation of the profile token credential.
|
void |
setSystem(AS400 system) |
Sets the system that is used during the creation of the profile token credential.
|
void |
setTimeoutInterval(int timeoutInterval) |
Sets the timeout interval that is specified during the creation of the profile token credential.
|
void |
setTokenType(int tokenType) |
Sets the token type that is specified during the creation of the profile token credential.
|
void |
setUserId(String userId) |
Sets the user ID that is used during the creation of the profile token credential.
|
public DefaultProfileTokenProvider()
public DefaultProfileTokenProvider(AS400 system)
system - The system to use during the creation of the profile token credential.public AS400 getSystem()
public void setSystem(AS400 system)
system - The system for the profile token.public int getTimeoutInterval()
public void setTimeoutInterval(int timeoutInterval)
timeoutInterval - The timeout interval for the profile token.public int getTokenType()
public void setTokenType(int tokenType)
tokenType - The token type for the profile token.
Valid values are:
ExtendedIllegalArgumentException - If the input token type is not validpublic String getUserId()
public void setUserId(String userId)
userId - The user ID for the profile token.public Object getExtendedInfo()
public void setPassword(String password)
password - The password for the user ID that is used
during the creation of the profile token credential.public void setPassword(char[] password)
password - The password for the user ID that is used
during the creation of the profile token credential.public void setPasswordSpecialValue(int specialValue)
specialValue - The special value. Valid values for this parameter are:
ExtendedIllegalArgumentException - If the input special value is not validprotected void setExtendedInfo(Object extendedInfo)
extendedInfo - The extended information for the profile token.public ProfileTokenCredential create() throws AS400SecurityException
create in interface ProfileTokenProviderAS400SecurityException - If an IBM i system security or authentication error occursExtendedIllegalStateException - If a required property has not been setProfileTokenProvider.create()protected final void checkFieldSet(Object field, String fieldName)
field - The fieldfieldName - The name of the field to checkprotected final void checkFieldSet(int field,
String description)
field - The fielddescription - The description to use for the exception thrown if the field is not setCopyright © 2024. All rights reserved.