|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jini.core.constraint.ClientMaxPrincipal
public final class ClientMaxPrincipal
Represents a constraint on the client, such that if the client authenticates itself, then it may only authenticate itself as one or more of the specified principals. 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, the client might wish to limit authentication to just one of the two, 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,
ClientMaxPrincipalType,
ClientMinPrincipal,
ClientMinPrincipalType,
AuthenticationPermission,
Serialized Form| Constructor Summary | |
|---|---|
ClientMaxPrincipal(Collection c)
Creates a constraint containing the specified principals, with duplicates removed. |
|
ClientMaxPrincipal(Principal p)
Creates a constraint containing the specified principal. |
|
ClientMaxPrincipal(Principal[] principals)
Creates a constraint containing the specified principals, with duplicates removed. |
|
| Method Summary | |
|---|---|
Set |
elements()
Returns an immutable set of all of the principals. |
boolean |
equals(Object obj)
Two instances of this class are equal if they have the same principals (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 ClientMaxPrincipal(Principal p)
p - the principal
NullPointerException - if the argument is nullpublic ClientMaxPrincipal(Principal[] principals)
principals - the principals
IllegalArgumentException - if the argument is empty
NullPointerException - if the argument is null or
any element is nullpublic ClientMaxPrincipal(Collection c)
c - the principals
IllegalArgumentException - if the argument is empty or the
elements do not all implement the Principal interface
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 Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||