Class GroupPrincipalCallback
java.lang.Object
jakarta.security.auth.message.callback.GroupPrincipalCallback
- All Implemented Interfaces:
Callback
-
Constructor Summary
ConstructorsConstructorDescriptionGroupPrincipalCallback(Subject subject, String[] groups) Constructs a callback with a Subject and an array of group names. -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the group names associated with this callback.Returns the Subject associated with this callback.
-
Constructor Details
-
GroupPrincipalCallback
Constructs a callback with a Subject and an array of group names. The callback handler will create principals for the group names and add them to the subject.- Parameters:
subject- the subject to which the group principals will be addedgroups- the group names associated with the caller
-
-
Method Details
-
getSubject
-
getGroups
Returns the group names associated with this callback.- Returns:
- the group names
-