public class DefaultProfileTokenProvider extends java.lang.Object implements ProfileTokenProvider
ProfileTokenProvider interface.| Constructor and Description | 
|---|
| DefaultProfileTokenProvider()Constructs a new DefaultProfileTokenProvider | 
| DefaultProfileTokenProvider(AS400 system)Constructs a new DefaultProfileTokenProvider. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkFieldSet(int field,
             java.lang.String description)Validate the specified field is set, that is, not null. | 
| protected void | checkFieldSet(java.lang.Object field,
             java.lang.String fieldName)Validate the specified field is set, that is, not null. | 
| ProfileTokenCredential | create()Creates and returns a new profile token credential. | 
| java.lang.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. | 
| java.lang.String | getUserId()Retrieves the user ID that is specified during the creation of the profile token credential. | 
| protected void | setExtendedInfo(java.lang.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(java.lang.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(java.lang.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 java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId - The user ID for the profile token.public java.lang.Object getExtendedInfo()
public void setPassword(java.lang.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(java.lang.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(java.lang.Object field,
                 java.lang.String fieldName)
field - The fieldfieldName - The name of the field to checkprotected final void checkFieldSet(int field,
                 java.lang.String description)
field - The fielddescription - The description to use for the exception thrown if the field is not set