org.jboss.messaging.ra
Class JBMCredential

java.lang.Object
  extended by org.jboss.messaging.ra.JBMCredential
All Implemented Interfaces:
java.io.Serializable

public class JBMCredential
extends java.lang.Object
implements java.io.Serializable

Credential information

Version:
$Revision: 71554 $
Author:
Adrian Brock, Jesper Pedersen
See Also:
Serialized Form

Method Summary
static JBMCredential getCredential(javax.resource.spi.ManagedConnectionFactory mcf, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)
          Get credentials
 java.lang.String getPassword()
          Get the password
 java.lang.String getUserName()
          Get the user name
 java.lang.String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 JBMCredential 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 factory
subject - The subject
info - The connection request info
Returns:
The credentials
Throws:
javax.resource.spi.SecurityException - Thrown if the credentials cant be retrieved

toString

public java.lang.String toString()
String representation

Overrides:
toString in class java.lang.Object
Returns:
The representation


Copyright © 2006 JBoss Inc. All Rights Reserved.