- java.lang.Object
-
- javax.security.auth.message.callback.GroupPrincipalCallback
-
-
Constructor Summary
Constructors Constructor and Description GroupPrincipalCallback(Subject s, String[] g)
Create a GroupPrincipalCallback to establish the container's representation of the corresponding group principals within the Subject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String[]
getGroups()
Get the array of group names.Subject
getSubject()
Get the Subject in which the handler will establish the group principals.
-
-
-
Constructor Detail
-
GroupPrincipalCallback
public GroupPrincipalCallback(Subject s, String[] g)
Create a GroupPrincipalCallback to establish the container's representation of the corresponding group principals within the Subject.- Parameters:
s
- The Subject in which the container will create group principals.g
- An array of Strings, where each element contains the name of a group that will be used to create a corresponding group principal within the Subject.When a null value is passed to the g argument, the handler will establish the container's representation of no group principals within the Subject. Otherwise, the handler's processing of this callback is additive, yielding the union (without duplicates) of the principals existing within the Subject, and those created with the names occuring within the argument array. The CallbackHandler will define the type of the created principals.
-
-
Method Detail
-
getSubject
public Subject getSubject()
Get the Subject in which the handler will establish the group principals.- Returns:
- The subject.
-
getGroups
public String[] getGroups()
Get the array of group names.- Returns:
- Null, or an array containing 0 or more String group names.
When the return value is null, the handler will establish the container's representation of no group principals within the Subject. Otherwise, the handler's processing of this callback is additive, yielding the union (without duplicates) of the principals created with the names in the returned array and those existing within the Subject.
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/security/auth/message/callback/GroupPrincipalCallback.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.