Package org.jboss.security.identity.extensions

Examples of org.jboss.security.identity.extensions.CredentialIdentity


      validateSecurityContext();
      Principal p = null;
      SubjectInfo subjectInfo = this.securityContext.getSubjectInfo();
      if(subjectInfo != null)
      {
         CredentialIdentity cIdentity = subjectInfo.getIdentity(CredentialIdentity.class);
         p = cIdentity != null ? cIdentity.asPrincipal() : null;
      }
      return p;
   }
View Full Code Here


      validateSecurityContext();
      Object cred = null;
      SubjectInfo subjectInfo = this.securityContext.getSubjectInfo();
      if(subjectInfo != null)
      {
         CredentialIdentity cIdentity = subjectInfo.getIdentity(CredentialIdentity.class);
         cred = cIdentity != null ? cIdentity.getCredential(): null;
      }
      return cred;
   }
View Full Code Here

   public Principal getPrincipal()
   {
      if(theSubjectInfo != null)
      {
         CredentialIdentity identity = theSubjectInfo.getIdentity(CredentialIdentity.class);
         if(identity != null)
           return identity.asPrincipal();
      }
      return null;
   }
View Full Code Here

  
   public Object getCredential()
   {
      if(theSubjectInfo != null)
      {
         CredentialIdentity identity = theSubjectInfo.getIdentity(CredentialIdentity.class);
         if(identity != null)
           return identity.getCredential();
      }
      return null;
   }
View Full Code Here

        Object credential = null;
        Iterator<Identity> iterator = SecurityContextAssociation.getSecurityContext().getSubjectInfo().getIdentities()
                .iterator();

        while (iterator.hasNext()) {
            CredentialIdentity identity = (CredentialIdentity) iterator.next();

            principal = identity.asPrincipal();
            credential = identity.getCredential();
        }

        Subject subject = new Subject();

        if (authenticationManager.isValid(principal, credential, subject) == false) {
View Full Code Here

TOP

Related Classes of org.jboss.security.identity.extensions.CredentialIdentity

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.