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());
}
use of com.sun.identity.authentication.internal.server.AuthSPrincipal in project OpenAM by OpenRock.
the class SubRealmEvaluationTest 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