xmlBlaster 2.2.0 API

org.xmlBlaster.j2ee.k2
Class BlasterCred

java.lang.Object
  extended by org.xmlBlaster.j2ee.k2.BlasterCred

public class BlasterCred
extends java.lang.Object

Carries user credentials inside this ra.

Version:
$Revision: 1.3 $
Author:
Peter Antman

Field Summary
 java.lang.String name
          The user name, from either the ConnectionRequestInfo, the Subject or the default configuration.
 java.lang.String pwd
          The password, from either the ConnectionRequestInfo, the Subject or the default configuration.
 
Constructor Summary
BlasterCred()
           
 
Method Summary
static BlasterCred getBlasterCred(javax.resource.spi.ManagedConnectionFactory mcf, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)
          Get our own simple cred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The user name, from either the ConnectionRequestInfo, the Subject or the default configuration.


pwd

public java.lang.String pwd
The password, from either the ConnectionRequestInfo, the Subject or the default configuration.

Constructor Detail

BlasterCred

public BlasterCred()
Method Detail

getBlasterCred

public static BlasterCred getBlasterCred(javax.resource.spi.ManagedConnectionFactory mcf,
                                         javax.security.auth.Subject subject,
                                         javax.resource.spi.ConnectionRequestInfo info)
                                  throws javax.resource.spi.SecurityException
Get our own simple cred.

The search order is this: info, subject, default config from mcf. If no user is found in any of these a SecurityException is thrown.

Throws:
javax.resource.spi.SecurityException

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.