Search in sources :

Example 1 with SingleUserPrincipal

use of backtype.storm.security.auth.SingleUserPrincipal in project jstorm by alibaba.

the class BlobStoreTest method getSubject.

public Subject getSubject(String name) {
    Subject subject = new Subject();
    SingleUserPrincipal user = new SingleUserPrincipal(name);
    subject.getPrincipals().add(user);
    return subject;
}
Also used : SingleUserPrincipal(backtype.storm.security.auth.SingleUserPrincipal) Subject(javax.security.auth.Subject)

Aggregations

SingleUserPrincipal (backtype.storm.security.auth.SingleUserPrincipal)1 Subject (javax.security.auth.Subject)1