|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.core.constraint.ClientMaxPrincipalType
public final class ClientMaxPrincipalType
Represents a constraint on the client, such that if the client authenticates itself, then it may only authenticate itself as principals that are instances of one or more of the specified classes. The mechanisms and credentials used to authenticate the client as those principals are not specified by this constraint. A client can use this constraint to limit how much of its identity is exposed in remote calls. For example, if the client's subject contains sufficient information to authenticate as two distinct principals of different types, the client might wish to limit authentication to just one of the two types, if the client believes the other is unnecessary for authorization at the server and wants to avoid revealing that part of its identity to the server.
The use of an instance of this class does not directly imply a
ClientAuthentication.YES
constraint; that must be specified
separately to ensure that the client actually authenticates itself.
Because this constraint is conditional on client authentication, it does
not conflict with ClientAuthentication.NO
.
ClientAuthentication
,
ClientMaxPrincipal
,
ClientMinPrincipal
,
ClientMinPrincipalType
,
AuthenticationPermission
,
Serialized FormConstructor Summary | |
---|---|
ClientMaxPrincipalType(Class clazz)
Creates a constraint containing the specified class. |
|
ClientMaxPrincipalType(Class[] classes)
Creates a constraint containing the specified classes, with redundant classes removed. |
|
ClientMaxPrincipalType(Collection c)
Creates a constraint containing the specified classes, with redundant classes removed. |
Method Summary | |
---|---|
Set |
elements()
Returns an immutable set of all of the classes. |
boolean |
equals(Object obj)
Two instances of this class are equal if they have the same classes (ignoring order). |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientMaxPrincipalType(Class clazz)
clazz
- the class
NullPointerException
- if the argument is null
IllegalArgumentException
- if the argument is a primitive type,
an array type, or a final
class that does not have
Principal
as a superinterfacepublic ClientMaxPrincipalType(Class[] classes)
c1
and c2
, if
c1.isAssignableFrom(c2)
is true
, then
c2
is removed. That is, duplicates and subtypes are
removed. The argument passed to the constructor is neither modified
nor retained; subsequent changes to that argument have no effect on
the instance created.
classes
- the classes
IllegalArgumentException
- if the argument is empty, or if any
element is a primitive type, an array type, or a final
class that does not have Principal
as a
superinterface
NullPointerException
- if the argument is null
or
any element is null
public ClientMaxPrincipalType(Collection c)
c1
and c2
, if
c1.isAssignableFrom(c2)
is true
, then
c2
is removed. That is, duplicates and subtypes are
removed. The argument passed to the constructor is neither modified
nor retained; subsequent changes to that argument have no effect on
the instance created.
c
- the classes
IllegalArgumentException
- if the argument is empty, or if any
element is not a Class
, or is a primitive type, an array
type, or a final
class that does not have
Principal
as a superinterface
NullPointerException
- if the argument is null
or
any element is null
Method Detail |
---|
public Set elements()
UnsupportedOperationException
being thrown.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |