org.jboss.security.client
Class JBossSecurityClient

java.lang.Object
  extended by org.jboss.security.client.SecurityClient
      extended by org.jboss.security.client.JBossSecurityClient

public class JBossSecurityClient
extends org.jboss.security.client.SecurityClient

Implementation of the SecurityClient contract
Usage:

  SecurityClient sc = SecurityClientFactory.getSecurityClient(JBossSecurityClient.class)
  sc.setUserName(somestring);
  etc...
  sc.login();
  

Since:
May 1, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
protected  LoginContext lc
           
 
Fields inherited from class org.jboss.security.client.SecurityClient
callbackHandler, credential, jaasDesired, loginConfigName, saslAuthorizationId, saslDesired, saslMechanism, userPrincipal, vmwideAssociation
 
Constructor Summary
JBossSecurityClient()
           
 
Method Summary
protected  void cleanUp()
           
protected  void peformSASLLogin()
           
protected  void performJAASLogin()
           
protected  void performSimpleLogin()
           
 
Methods inherited from class org.jboss.security.client.SecurityClient
isVmwideAssociation, login, logout, setJAAS, setSASL, setSimple, setVmwideAssociation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lc

protected LoginContext lc
Constructor Detail

JBossSecurityClient

public JBossSecurityClient()
Method Detail

peformSASLLogin

protected void peformSASLLogin()
Specified by:
peformSASLLogin in class org.jboss.security.client.SecurityClient

performJAASLogin

protected void performJAASLogin()
                         throws LoginException
Specified by:
performJAASLogin in class org.jboss.security.client.SecurityClient
Throws:
LoginException

performSimpleLogin

protected void performSimpleLogin()
Specified by:
performSimpleLogin in class org.jboss.security.client.SecurityClient

cleanUp

protected void cleanUp()
Specified by:
cleanUp in class org.jboss.security.client.SecurityClient


Copyright © 2009 JBoss Inc.. All Rights Reserved.