Package org.switchyard.security.credential

Examples of org.switchyard.security.credential.SubjectCredential


        creds.add(new PrincipalCredential(role, false));
        creds.add(new PrincipalCredential(childGroup, true));
        creds.add(new PrincipalCredential(parentGroup, false));
        Subject childSubject = new Subject();
        childSubject.getPrincipals().add(new UserPrincipal("childUser"));
        creds.add(new SubjectCredential(childSubject));
        return creds;
    }
View Full Code Here


            if (request != null && PRINCIPAL_ACCESS != null) {
                Principal principal = PRINCIPAL_ACCESS.read(request);
                if (principal instanceof JBossGenericPrincipal) {
                    Subject subject = ((JBossGenericPrincipal)principal).getSubject();
                    if (subject != null) {
                        credentials.add(new SubjectCredential(subject));
                    }
                }
            }
        }
        return credentials;
View Full Code Here

TOP

Related Classes of org.switchyard.security.credential.SubjectCredential

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.