public final class CredentialImpl extends Object implements Credential
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
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
- 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
Copyright © 2015 Lucee