public class GroupPrincipalCallback extends Object implements Callback
Callback establishing group principals within the argument subject. This callback is intended to be called by a serverAuthModule during its validateRequest processing.
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.
|
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.
|
public GroupPrincipalCallback(Subject s, String[] g)
Create a GroupPrincipalCallback to establish the container’s representation of the corresponding group principals within the Subject.
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.public String[] getGroups()
Get the array of group names.
public Subject getSubject()
Get the Subject in which the handler will establish the group principals.
Copyright © 2017 JBoss by Red Hat. All rights reserved.