Examples of PicketLinkPrincipal


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

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

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

                    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

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

            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

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

            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
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.