Examples of unauthenticatedPrincipal()


Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

               /**
                * Special Case: Invocation has no principal set,
                * but an unauthenticatedPrincipal has been configured in JBoss DD
                */
               Principal userPrincipal = sc.getUtil().getUserPrincipal();
               String unauthenticatedPrincipal = domain.unauthenticatedPrincipal();
               if(userPrincipal == null && unauthenticatedPrincipal !=null &&
                     unauthenticatedPrincipal.length() > 0)
               {
                  Identity unauthenticatedIdentity = new SimpleIdentity(unauthenticatedPrincipal);
                  sc.getSubjectInfo().addIdentity(unauthenticatedIdentity);
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/*     */
/* 160 */       SecurityContext sc = SecurityContextAssociation.getSecurityContext();
/* 161 */       if (sc == null)
/*     */       {
/* 163 */         SecurityDomain domain = (SecurityDomain)ec.resolveAnnotation(SecurityDomain.class);
/* 164 */         String unauth = domain.unauthenticatedPrincipal();
/* 165 */         if ((unauth != null) && (unauth.length() > 0) &&
/* 166 */           (domain.unauthenticatedPrincipal() != null))
/* 167 */           callerPrincipal = new SimplePrincipal(unauth);
/*     */       }
/*     */       else
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/* 161 */       if (sc == null)
/*     */       {
/* 163 */         SecurityDomain domain = (SecurityDomain)ec.resolveAnnotation(SecurityDomain.class);
/* 164 */         String unauth = domain.unauthenticatedPrincipal();
/* 165 */         if ((unauth != null) && (unauth.length() > 0) &&
/* 166 */           (domain.unauthenticatedPrincipal() != null))
/* 167 */           callerPrincipal = new SimplePrincipal(unauth);
/*     */       }
/*     */       else
/*     */       {
/* 171 */         EJBAuthorizationHelper helper = new EJBAuthorizationHelper(sc);
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/*     */         }
/*     */       }
/* 183 */       if (callerPrincipal == null)
/*     */       {
/* 185 */         SecurityDomain domain = (SecurityDomain)ec.resolveAnnotation(SecurityDomain.class);
/* 186 */         String unauth = domain.unauthenticatedPrincipal();
/* 187 */         if ((unauth != null) && (unauth.length() > 0) &&
/* 188 */           (domain.unauthenticatedPrincipal() != null)) {
/* 189 */           callerPrincipal = new SimplePrincipal(unauth);
/*     */         }
/*     */       }
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/* 183 */       if (callerPrincipal == null)
/*     */       {
/* 185 */         SecurityDomain domain = (SecurityDomain)ec.resolveAnnotation(SecurityDomain.class);
/* 186 */         String unauth = domain.unauthenticatedPrincipal();
/* 187 */         if ((unauth != null) && (unauth.length() > 0) &&
/* 188 */           (domain.unauthenticatedPrincipal() != null)) {
/* 189 */           callerPrincipal = new SimplePrincipal(unauth);
/*     */         }
/*     */       }
/*     */
/* 193 */       if (callerPrincipal == null) {
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/*     */
/*     */   public Object invoke(Invocation invocation) throws Throwable
/*     */   {
/* 100 */     SecurityDomain domain = (SecurityDomain)this.container.resolveAnnotation(SecurityDomain.class);
/*     */
/* 102 */     if ((domain != null) && (domain.unauthenticatedPrincipal() != null) && (domain.unauthenticatedPrincipal().length() != 0))
/*     */     {
/* 104 */       Principal principal = (Principal)invocation.getMetaData("security", "principal");
/* 105 */       if (principal == null) {
/* 106 */         principal = SecurityAssociation.getPrincipal();
/*     */       }
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/*     */
/*     */   public Object invoke(Invocation invocation) throws Throwable
/*     */   {
/* 100 */     SecurityDomain domain = (SecurityDomain)this.container.resolveAnnotation(SecurityDomain.class);
/*     */
/* 102 */     if ((domain != null) && (domain.unauthenticatedPrincipal() != null) && (domain.unauthenticatedPrincipal().length() != 0))
/*     */     {
/* 104 */       Principal principal = (Principal)invocation.getMetaData("security", "principal");
/* 105 */       if (principal == null) {
/* 106 */         principal = SecurityAssociation.getPrincipal();
/*     */       }
View Full Code Here

Examples of org.jboss.ejb3.annotation.SecurityDomain.unauthenticatedPrincipal()

/* 105 */       if (principal == null) {
/* 106 */         principal = SecurityAssociation.getPrincipal();
/*     */       }
/* 108 */       if (principal == null)
/*     */       {
/* 111 */         principal = new TrustedPrincipal(domain.unauthenticatedPrincipal());
/*     */
/* 114 */         invocation.getMetaData().addMetaData("security", "principal", principal);
/*     */       }
/*     */
/* 118 */       if ((principal != null) && ((principal instanceof TrustedPrincipal)))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.