use of org.apache.storm.security.auth.NimbusPrincipal in project storm by apache.
the class BlobStoreTest method getNimbusSubject.
//Gets Nimbus Subject with NimbusPrincipal set on it
public static Subject getNimbusSubject() {
Subject nimbus = new Subject();
nimbus.getPrincipals().add(new NimbusPrincipal());
return nimbus;
}
use of org.apache.storm.security.auth.NimbusPrincipal in project storm by apache.
the class BlobStoreTest method getNimbusSubject.
// Gets Nimbus Subject with NimbusPrincipal set on it
public static Subject getNimbusSubject() {
Subject nimbus = new Subject();
nimbus.getPrincipals().add(new NimbusPrincipal());
return nimbus;
}
use of org.apache.storm.security.auth.NimbusPrincipal in project storm by apache.
the class BlobStoreAclHandler method isNimbus.
private boolean isNimbus(Subject who) {
Set<Principal> principals;
boolean isNimbusInstance = false;
if (who != null) {
principals = who.getPrincipals();
for (Principal principal : principals) {
if (principal instanceof NimbusPrincipal) {
isNimbusInstance = true;
}
}
}
return isNimbusInstance;
}
use of org.apache.storm.security.auth.NimbusPrincipal in project storm by apache.
the class BlobStoreUtils method getNimbusSubject.
public static Subject getNimbusSubject() {
Subject subject = new Subject();
subject.getPrincipals().add(new NimbusPrincipal());
return subject;
}
Aggregations