public class MuleCredentials extends Object implements Credentials, Serializable
MuleCredentials can be used to read and set Mule user information
that can be stored in a message header.| Modifier and Type | Field and Description |
|---|---|
static String |
TOKEN_DELIM |
| Constructor and Description |
|---|
MuleCredentials(String username,
char[] password) |
MuleCredentials(String username,
char[] password,
Object roles) |
MuleCredentials(String header,
SecurityManager sm) |
| Modifier and Type | Method and Description |
|---|---|
static String |
createHeader(String username,
char[] password) |
static String |
createHeader(String username,
String password,
String encryptionName,
EncryptionStrategy es) |
char[] |
getPassword() |
Object |
getRoles() |
String |
getToken() |
String |
getUsername() |
public static final String TOKEN_DELIM
public MuleCredentials(String username, char[] password)
public MuleCredentials(String header, SecurityManager sm) throws EncryptionStrategyNotFoundException, CryptoFailureException
public String getToken()
public String getUsername()
getUsername in interface Credentialspublic char[] getPassword()
getPassword in interface Credentialspublic Object getRoles()
getRoles in interface Credentialspublic static String createHeader(String username, String password, String encryptionName, EncryptionStrategy es) throws CryptoFailureException
CryptoFailureExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.