use of com.sun.identity.authentication.internal.server.AuthSPrincipal in project OpenAM by OpenRock.
the class SSOTokenPrincipal method createSubject.
public Subject createSubject() throws Exception {
Set<Principal> userPrincipals = new HashSet<Principal>(2);
String uuid = ssoToken.getProperty(Constants.UNIVERSAL_IDENTIFIER);
userPrincipals.add(new AuthSPrincipal(uuid));
Set privateCred = new HashSet();
privateCred.add(ssoToken);
return new Subject(false, userPrincipals, new HashSet(), privateCred);
}
use of com.sun.identity.authentication.internal.server.AuthSPrincipal in project OpenAM by OpenRock.
the class ProxyPETest method createSubject.
private javax.security.auth.Subject createSubject(SSOToken token) {
Principal userP = new AuthSPrincipal(token.getTokenID().toString());
Set userPrincipals = new HashSet(2);
userPrincipals.add(userP);
return new javax.security.auth.Subject(true, userPrincipals, Collections.EMPTY_SET, Collections.EMPTY_SET);
}
use of com.sun.identity.authentication.internal.server.AuthSPrincipal in project OpenAM by OpenRock.
the class SubjectUtils method createSubject.
public static Subject createSubject(SSOToken token) {
try {
Set<Principal> userPrincipals = new HashSet<Principal>(2);
String uuid = token.getProperty(Constants.UNIVERSAL_IDENTIFIER);
userPrincipals.add(new AuthSPrincipal(uuid));
Set privateCred = new HashSet();
privateCred.add(token);
return new Subject(false, userPrincipals, new HashSet(), privateCred);
} catch (SSOException ex) {
PolicyConstants.DEBUG.error("SubjectUtils.createSubject", ex);
return null;
}
}
use of com.sun.identity.authentication.internal.server.AuthSPrincipal in project OpenAM by OpenRock.
the class LogTest method createSubject.
private Subject createSubject(SSOToken token) {
Principal userP = new AuthSPrincipal(token.getTokenID().toString());
Set userPrincipals = new HashSet(2);
userPrincipals.add(userP);
Set privateCred = new HashSet(2);
privateCred.add(token);
return new Subject(true, userPrincipals, Collections.EMPTY_SET, privateCred);
}
use of com.sun.identity.authentication.internal.server.AuthSPrincipal in project OpenAM by OpenRock.
the class SubRealmGroupTest method createSubject.
public static Subject createSubject(String uuid) {
Set<Principal> userPrincipals = new HashSet<Principal>(2);
userPrincipals.add(new AuthSPrincipal(uuid));
return new Subject(false, userPrincipals, new HashSet(), new HashSet());
}
Aggregations