|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.security.auth.DefaultProfileTokenProvider
public class DefaultProfileTokenProvider extends Object implements ProfileTokenProvider
A default implementation of the 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,
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(String password)
Sets the password for the user ID that is used during the creation of the profile token credential. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultProfileTokenProvider()
public DefaultProfileTokenProvider(AS400 system)
system - The system to use during the creation of the profile token credential.| Method Detail |
|---|
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 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 check
protected final void checkFieldSet(int field,
String description)
field - The fielddescription - The description to use for the exception thrown if the field is not set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||