IT. Expert System.

Java Enterprise Edition (EE)

GroupPrincipalCallback


javax.security.auth.message.callback
Class GroupPrincipalCallback

java.lang.Object
  javax.security.auth.message.callback.GroupPrincipalCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback
public class GroupPrincipalCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

Callback establishing group principals within the argument subject. This callback is intended to be called by a serverAuthModule during its validateRequest processing.

Version:
%I%, %G%

Constructor Summary
GroupPrincipalCallback(javax.security.auth.Subject s, java.lang.String[] g)
          Create a GroupPrincipalCallback to establish the container's representation of the corresponding group principals within the Subject.
 
Method Summary
 java.lang.String[] getGroups()
          Get the array of group names.
 javax.security.auth.Subject getSubject()
          Get the Subject in which the handler will establish the group principals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupPrincipalCallback

public GroupPrincipalCallback(javax.security.auth.Subject s,
                              java.lang.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 javax.security.auth.Subject getSubject()
Get the Subject in which the handler will establish the group principals.

Returns:
The subject.

getGroups

public java.lang.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.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3585 / . Delta: 0.11702 с