Package org.picketlink.identity.federation.bindings.jboss.subject

Examples of org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkPrincipal


            SubjectType subject = assertion.getSubject();
            if (subject != null) {
                BaseIDAbstractType baseID = subject.getSubType().getBaseID();
                if (baseID instanceof NameIDType) {
                    NameIDType nameID = (NameIDType) baseID;
                    this.principal = new PicketLinkPrincipal(nameID.getValue());

                    // If the user has configured cache invalidation of subject based on saml token expiry
                    if (enableCacheInvalidation) {
                        TimeCacheExpiry cacheExpiry = this.getCacheExpiry();
                        XMLGregorianCalendar expiry = AssertionUtil.getExpiration(assertion);
View Full Code Here


            SubjectType subject = assertion.getSubject();
            if (subject != null) {
                BaseIDAbstractType baseID = subject.getSubType().getBaseID();
                if (baseID instanceof NameIDType) {
                    NameIDType nameID = (NameIDType) baseID;
                    this.principal = new PicketLinkPrincipal(nameID.getValue());

                    // If the user has configured cache invalidation of subject based on saml token expiry
                    if (enableCacheInvalidation) {
                        TimeCacheExpiry cacheExpiry = this.getCacheExpiry();
                        XMLGregorianCalendar expiry = AssertionUtil.getExpiration(assertion);
View Full Code Here

                    break;
                }
            }
            if (samlCredential == null)
                throw logger.authSAMLCredentialNotAvailable();
            Principal principal = new PicketLinkPrincipal("");
            if (super.isUseFirstPass()) {
                this.sharedState.put("javax.security.auth.login.name", principal);
                super.sharedState.put("javax.security.auth.login.password", samlCredential);
            }
View Full Code Here

            this.sharedState = sharedState;
        }

        @SuppressWarnings("unchecked")
        public boolean login() throws LoginException {
            sharedState.put("javax.security.auth.login.name", new PicketLinkPrincipal(""));
            return true;
        }
View Full Code Here

            Element nameID = Util.findElement(subject, new QName(assertionNS, "NameID"));
            String username = getUsername(nameID);
           
            // set SecurityContext
            Subject theSubject = new Subject();
            PicketLinkPrincipal principal = new PicketLinkPrincipal(username);

            createSecurityContext(credential, theSubject, principal);
           
            if (assertionType != null) {
                List<String> roleKeys = new ArrayList<String>();
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkPrincipal

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.