Package org.apache.geronimo.security

Examples of org.apache.geronimo.security.SubjectId


            throw new ExpiredLoginModuleException();
        }

        Subject subject = context.getSubject();
        ContextManager.registerSubject(subject);
        SubjectId id = ContextManager.getSubjectId(subject);
        IdentificationPrincipal principal = new IdentificationPrincipal(id);
        subject.getPrincipals().add(principal);
        SecurityRealm realm = getRealm(context.getRealmName());
        if (realm.isRestrictPrincipalsToServer()) {
            return new Principal[]{principal};
View Full Code Here


           
            if (principals.isEmpty()) {
                super.write(createClearSubjectPackt());
            } else {               
                IdentificationPrincipal principal = (IdentificationPrincipal) principals.iterator().next();
                SubjectId subjectId = principal.getId();               
                super.write(createSubjectPacket(subjectId.getSubjectId(), subjectId.getHash()));
            }
           
        }
        super.write(createPassthroughPacket(packet));
    }
View Full Code Here

            switch( packet.read() ) {
                case CLEAR_SUBJECT:
                    localSubject = null;
                    return;
                case SET_SUBJECT:              
                    SubjectId subjectId = extractSubjectId(packet);
                    localSubject = ContextManager.getRegisteredSubject(subjectId);
                    return;
                case PASSTHROUGH:
                    super.onPacket( new SubjectPacketFilter(packet) );
            }
View Full Code Here

                 */
                DefaultPrincipal defaultPrincipal = securityHolder.getDefaultPrincipal();
                if (defaultPrincipal != null){
                    defaultSubject = ConfigurationUtil.generateDefaultSubject(defaultPrincipal);
                    ContextManager.registerSubject(defaultSubject);
                    SubjectId id = ContextManager.getSubjectId(defaultSubject);
                    defaultSubject.getPrincipals().add(new IdentificationPrincipal(id));      
                }
               
                PolicyContextValve policyValve = new PolicyContextValve(
                    securityHolder.getPolicyContextID());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.security.SubjectId

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.