public class DefaultMuleCredentials extends Object implements org.mule.runtime.api.security.Credentials, Serializable
Credentials.
DefaultMuleCredentials can be used to read and set Mule user information that can be stored in a message header.| Constructor and Description |
|---|
DefaultMuleCredentials(String username,
char[] password) |
DefaultMuleCredentials(String username,
char[] password,
Object roles) |
DefaultMuleCredentials(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 DefaultMuleCredentials(String username, char[] password)
public DefaultMuleCredentials(String username, char[] password, Object roles)
public DefaultMuleCredentials(String header, SecurityManager sm) throws EncryptionStrategyNotFoundException, CryptoFailureException
public String getToken()
public String getUsername()
getUsername in interface org.mule.runtime.api.security.Credentialspublic char[] getPassword()
getPassword in interface org.mule.runtime.api.security.Credentialspublic Object getRoles()
getRoles in interface org.mule.runtime.api.security.Credentialspublic static String createHeader(String username, String password, String encryptionName, EncryptionStrategy es) throws CryptoFailureException
CryptoFailureExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.