Package org.jboss.security.auth.callback

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


/*     */ {
/*  59 */   private JaasSecurityManagerBase delegate = null;
/*     */
/*     */   public JaasSecurityManager()
/*     */   {
/*  66 */     this("other", new SecurityAssociationHandler());
/*     */   }
View Full Code Here


/*  93 */     synchronized (cache)
/*     */     {
/*  95 */       if (manager != null) {
/*  96 */         return manager;
/*     */       }
/*  98 */       manager = new JaasSecurityManager(name, new SecurityAssociationHandler());
/*  99 */       cache.put(name, manager);
/*     */     }
/* 101 */     return manager;
/*     */   }
View Full Code Here

/*     */     public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)
/*     */       throws Exception
/*     */     {
/* 115 */       String securityDomainName = name.get(1);
/* 116 */       SecurityDomainContext ctx = new SecurityDomainContext(JaasSecurityManagerService.access$000(securityDomainName), null);
/* 117 */       ctx.setAuthorizationManager(new JBossAuthorizationManager(securityDomainName, new SecurityAssociationHandler()));
/* 118 */       return new BrainlessContext(ctx)
/*     */       {
/*     */         public Object lookup(Name name) throws NamingException
/*     */         {
/* 122 */           JaasSecurityManagerService.SecurityDomainObjectFactory.log.debug("lookup " + name);
View Full Code Here

/*    */   }
/*    */
/*    */   protected boolean validate(Subject clientSubject)
/*    */     throws AuthException
/*    */   {
/* 61 */     this.callbackHandler = new SecurityAssociationHandler(getUserName(), getCredential());
/* 62 */     return super.validate(clientSubject);
/*    */   }
View Full Code Here

/* 110 */     if ((bai instanceof AuthenticationInfo))
/*     */     {
/* 113 */       ServerAuthModule sam = new DelegatingServerAuthModule();
/* 114 */       Map options = new HashMap();
/* 115 */       options.put("javax.security.auth.login.LoginContext", secDomain);
/* 116 */       sam.initialize(null, null, new SecurityAssociationHandler(), options);
/* 117 */       this.modules.add(sam);
/*     */     }
/*     */     else
/*     */     {
/* 121 */       JASPIAuthenticationInfo jai = (JASPIAuthenticationInfo)bai;
View Full Code Here

      {
         //Need to get a wrapper
         ServerAuthModule sam = new DelegatingServerAuthModule();
         Map options = new HashMap();
         options.put("javax.security.auth.login.LoginContext", secDomain); //Name of sec domain
         sam.initialize(null, null, new SecurityAssociationHandler(), options);
         modules.add(sam);
      }
      else
      {
         JASPIAuthenticationInfo jai = (JASPIAuthenticationInfo)bai;
View Full Code Here

    name of that given by the 'securityDomain' argument.
    @param securityDomain , the name of the security domain
    */
   public JaasSecurityDomain(String securityDomain)
   {
      this(securityDomain, new SecurityAssociationHandler());
   }
View Full Code Here

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

TOP

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

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.