org.n52.security.common.authentication
Class PasswordCredentialEditor
java.lang.Object
org.n52.security.common.authentication.PasswordCredentialEditor
- All Implemented Interfaces:
- CredentialEditor
- public class PasswordCredentialEditor
- extends java.lang.Object
- implements CredentialEditor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PasswordCredentialEditor
public PasswordCredentialEditor(AuthenticationMethod pMethod,
boolean pIsBase64Encoded)
getCredential
public Credential getCredential()
- Description copied from interface:
CredentialEditor
- The values can be anything like comma seperated username,password or a SAMLTicket.
- Specified by:
getCredential
in interface CredentialEditor
- Returns:
- the specified values of this Credential seperated in an Array.
e.g.: the values of this Credential are username and password, they will appear in the first
and second field of the Array. If the value is a String representation of a SAMLTicket it will
appear in the first field. The values themselves may be encoded credential values like hashvalues ov password or Base64 encoded representation
setUsername
public void setUsername(java.lang.String userName)
setPassword
public void setPassword(java.lang.String password)
getFields
public Field[] getFields()
- Specified by:
getFields
in interface CredentialEditor
- Returns:
- a String Array with the specified userName in its first field and the specified password in the
second one.
toString
public java.lang.String toString()
getAuthenticationMethod
public AuthenticationMethod getAuthenticationMethod()
- Specified by:
getAuthenticationMethod
in interface CredentialEditor
setFieldValues
public void setFieldValues(java.lang.String pValueList)
- Description copied from interface:
CredentialEditor
- Sets the credential values from a comma separated String representation
- Specified by:
setFieldValues
in interface CredentialEditor
- Parameters:
pValueList
- a comma separated String
Copyright © 2004-2007 52 North. All Rights Reserved.