Package org.jboss.security.auth.callback

Examples of org.jboss.security.auth.callback.JBossCallbackHandler


        if (this.serverAuthenticationManagerClass ==  null) {
            SecurityContext context = SecurityActions.getSecurityContext();
            if (context != null) {
                WebLogger.WEB_SECURITY_LOGGER.debugf("Instantiating JASPI authentication manager with security domain %s",
                        context.getSecurityDomain());
                sam = new JASPIServerAuthenticationManager(context.getSecurityDomain(), new JBossCallbackHandler());
            }
            else {
                WebLogger.WEB_SECURITY_LOGGER.debugf("Security context is null, instantiating JASPI authentication manager with default domain");
                sam = new JASPIServerAuthenticationManager();
            }
View Full Code Here


        if (this.serverAuthenticationManagerClass ==  null) {
            SecurityContext context = SecurityActions.getSecurityContext();
            if (context != null) {
                WebLogger.WEB_SECURITY_LOGGER.debugf("Instantiating JASPI authentication manager with security domain %s",
                        context.getSecurityDomain());
                sam = new JASPIServerAuthenticationManager(context.getSecurityDomain(), new JBossCallbackHandler());
            }
            else {
                WebLogger.WEB_SECURITY_LOGGER.debugf("Security context is null, instantiating JASPI authentication manager with default domain");
                sam = new JASPIServerAuthenticationManager();
            }
View Full Code Here

  
   public JBossSecurityContext(String securityDomain)
   {
      this.securityDomain = securityDomain;
      if(this.callbackHandler == null)
         this.callbackHandler = new JBossCallbackHandler();
     
      iSecurityManagement = new DefaultSecurityManagement(this.callbackHandler);
      util = getUtil();
      //Create a null subjectinfo as default
      util.createSubjectInfo(null, null, null);
View Full Code Here

        if (this.serverAuthenticationManagerClass ==  null) {
            SecurityContext context = SecurityActions.getSecurityContext();
            if (context != null) {
                WebLogger.WEB_SECURITY_LOGGER.debugf("Instantiating JASPI authentication manager with security domain %s",
                        context.getSecurityDomain());
                sam = new JASPIServerAuthenticationManager(context.getSecurityDomain(), new JBossCallbackHandler());
            }
            else {
                WebLogger.WEB_SECURITY_LOGGER.debugf("Security context is null, instantiating JASPI authentication manager with default domain");
                sam = new JASPIServerAuthenticationManager();
            }
View Full Code Here

  
   public JBossSecurityContext(String securityDomain)
   {
      this.securityDomain = securityDomain;
      if(this.callbackHandler == null)
         this.callbackHandler = new JBossCallbackHandler();
     
      iSecurityManagement = new DefaultSecurityManagement(this.callbackHandler);
      util = getUtil();
      //Create a null subjectinfo as default
      util.createSubjectInfo(null, null, null);
View Full Code Here

   /** Creates a default JaasSecurityManager for with a securityDomain
    name of 'other'.
    */
   public SynchronizedJaasSecurityManager()
   {
      this("other", new JBossCallbackHandler());
   }
View Full Code Here

   /** Creates a default JaasSecurityManager for with a securityDomain
    name of 'other'.
    */
   public JaasSecurityManagerBase()
   {
      this("other", new JBossCallbackHandler());
   }
View Full Code Here

   }

   @Override
   protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException
  
      callbackHandler = new JBossCallbackHandler(getUserName(messageInfo),
            getCredential(messageInfo));
      return super.validate(clientSubject, messageInfo);
   }
View Full Code Here

*/
public class JBossCallbackHandlerUnitTestCase extends TestCase
{
   public void testCtr() throws Exception
   {
      JBossCallbackHandler cbh = new JBossCallbackHandler(new SimplePrincipal("anil"), "testpass");
      validate(cbh);
   }
View Full Code Here

      validate(cbh);
   }
  
   public void testSetSecurityInfo() throws Exception
   {
      JBossCallbackHandler cbh = new JBossCallbackHandler();
      cbh.setSecurityInfo(new SimplePrincipal("anil"), "testpass");
      validate(cbh);
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.auth.callback.JBossCallbackHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.