org.mule.security
Class MuleCredentials
java.lang.Object
org.mule.security.MuleCredentials
- All Implemented Interfaces:
- Serializable, Credentials
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOKEN_DELIM
public static final String TOKEN_DELIM
- See Also:
- Constant Field Values
MuleCredentials
public MuleCredentials(String username,
char[] password)
MuleCredentials
public MuleCredentials(String username,
char[] password,
Object roles)
MuleCredentials
public MuleCredentials(String header,
SecurityManager sm)
throws EncryptionStrategyNotFoundException,
CryptoFailureException
- Throws:
EncryptionStrategyNotFoundException
CryptoFailureException
getToken
public String getToken()
getUsername
public String getUsername()
- Specified by:
getUsername
in interface Credentials
getPassword
public char[] getPassword()
- Specified by:
getPassword
in interface Credentials
getRoles
public Object getRoles()
- Specified by:
getRoles
in interface Credentials
createHeader
public static String createHeader(String username,
char[] password)
createHeader
public static String createHeader(String username,
String password,
String encryptionName,
EncryptionStrategy es)
throws CryptoFailureException
- Throws:
CryptoFailureException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.