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 Credentials
public char[] getPassword()
getPassword
in interface Credentials
public Object getRoles()
getRoles
in interface Credentials
public static String createHeader(String username, String password, String encryptionName, EncryptionStrategy es) throws CryptoFailureException
CryptoFailureException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.