Package org.apache.activemq.artemis.ra
Class ActiveMQRACredential
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRACredential
-
- All Implemented Interfaces:
java.io.Serializable
public class ActiveMQRACredential extends java.lang.Object implements java.io.SerializableCredential information- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActiveMQRACredentialgetCredential(javax.resource.spi.ManagedConnectionFactory mcf, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)Get credentialsjava.lang.StringgetPassword()Get the passwordjava.lang.StringgetUserName()Get the user namejava.lang.StringtoString()String representation
-
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
Get the user name- Returns:
- The value
-
getPassword
public java.lang.String getPassword()
Get the password- Returns:
- The value
-
getCredential
public static ActiveMQRACredential getCredential(javax.resource.spi.ManagedConnectionFactory mcf, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.spi.SecurityException
Get credentials- Parameters:
mcf- The managed connection factorysubject- The subjectinfo- The connection request info- Returns:
- The credentials
- Throws:
javax.resource.spi.SecurityException- Thrown if the credentials can't be retrieved
-
toString
public java.lang.String toString()
String representation- Overrides:
toStringin classjava.lang.Object- Returns:
- The representation
-
-