public final class CredentialParam extends java.lang.Object implements PluginAttribute
CredentialParam object holds the each credenetial collected. This will have the type of the credential and value. Credential parameter types are defined in AuthenticationConstants the available types are.
AuthenticationConstants.CRED_PARAM_TYPE_STRINGAuthenticationConstants.CRED_PARAM_TYPE_PASSWDAuthenticationConstants.CRED_PARAM_TYPE_HTTP_HEADERAuthenticationConstants.CRED_PARAM_TYPE_HTTP_COOKIE| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
NAME_TAG |
protected static java.lang.String |
OBJ_ID |
protected static java.lang.String |
TYPE_TAG |
protected static java.lang.String |
VALUE_TAG |
KEY_TAG| Constructor and Description |
|---|
CredentialParam() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(java.lang.String token) |
java.lang.String |
getKeyName() |
java.lang.String |
getName()
Returns the name of the credential parameter.
|
java.lang.String |
getObjName() |
java.lang.String |
getType()
Returns the type of the credential.
|
java.lang.Object |
getValue()
Returns the value of the Credential parameter as an Object.
|
void |
setKeyName(java.lang.String keyName) |
void |
setName(java.lang.String name)
Sets the name of the paramter.
|
void |
setType(java.lang.String type)
Sets the Credential parameter type.
|
void |
setValue(java.lang.Object value)
Sets the value of the crednetial paramter.
|
java.lang.String |
toStringForm() |
protected static final java.lang.String OBJ_ID
protected static java.lang.String NAME_TAG
protected static java.lang.String VALUE_TAG
protected static java.lang.String TYPE_TAG
public java.lang.String getName()
public void setName(java.lang.String name)
name - String object.public java.lang.String getType()
AuthenticationConstantspublic void setType(java.lang.String type)
AuthenticationConstants the available types are.
AuthenticationConstants.CRED_PARAM_TYPE_STRINGAuthenticationConstants.CRED_PARAM_TYPE_PASSWDAuthenticationConstants.CRED_PARAM_TYPE_HTTP_HEADERAuthenticationConstants.CRED_PARAM_TYPE_HTTP_COOKIEtype - the new typepublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the new valuepublic java.lang.String toStringForm()
toStringForm in interface PluginAttributepublic void fromString(java.lang.String token)
fromString in interface PluginAttributepublic java.lang.String getKeyName()
getKeyName in interface PluginAttributepublic void setKeyName(java.lang.String keyName)
setKeyName in interface PluginAttributepublic java.lang.String getObjName()
getObjName in interface PluginAttribute