|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.security.CredentialImpl
public final class CredentialImpl
User Password Information
Constructor Summary | |
---|---|
CredentialImpl(String username,
Resource rolesDir)
credential constructor |
|
CredentialImpl(String username,
String password,
Array roles,
Resource rolesDir)
credential constructor |
|
CredentialImpl(String username,
String password,
Resource rolesDir)
credential constructor |
|
CredentialImpl(String username,
String password,
String[] roles,
Resource rolesDir)
credential constructor |
|
CredentialImpl(String username,
String password,
String roles,
Resource rolesDir)
credential constructor |
Method Summary | |
---|---|
static Credential |
decode(Object encoded,
Resource rolesDir)
decode the Credential form a Base64 String value |
String |
encode()
encode rhe Credential to a Base64 String value |
String |
getPassword()
|
String[] |
getRoles()
|
String |
getUsername()
|
String |
serialize()
convert object to String |
String |
serialize(Set<Object> done)
convert object to String |
static String[] |
toRole(Object oRoles)
convert a Object to a String Array of Roles |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CredentialImpl(String username, Resource rolesDir)
username
- public CredentialImpl(String username, String password, Resource rolesDir)
username
- password
- public CredentialImpl(String username, String password, String roles, Resource rolesDir) throws PageException
username
- password
- roles
-
PageException
public CredentialImpl(String username, String password, Array roles, Resource rolesDir) throws PageException
username
- password
- roles
-
PageException
public CredentialImpl(String username, String password, String[] roles, Resource rolesDir)
username
- password
- roles
- Method Detail |
---|
public String getPassword()
getPassword
in interface Credential
public String[] getRoles()
getRoles
in interface Credential
public String getUsername()
getUsername
in interface Credential
public static String[] toRole(Object oRoles) throws PageException
oRoles
-
PageException
public String serialize()
ScriptConvertable
serialize
in interface ScriptConvertable
public String serialize(Set<Object> done)
ScriptConvertable
serialize
in interface ScriptConvertable
public String encode() throws PageException
Credential
encode
in interface Credential
PageException
public static Credential decode(Object encoded, Resource rolesDir) throws PageException
encoded
-
PageException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |