public interface AuthorityGranter
If a Windows NT login module were to be used from JAAS, an AuthrityGranter implementation could be created to map a NT Group Principal to a ROLE_USER role for instance.
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
grant(java.security.Principal principal)
The grant method is called for each principal returned from the LoginContext
subject.
|
java.util.Set<java.lang.String> grant(java.security.Principal principal)
The set may contain any object as all objects in the returned set will be passed to the JaasGrantedAuthority constructor using toString().
principal
- One of the principals from the
LoginContext.getSubect().getPrincipals() method.