|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jini.core.constraint.ClientMinPrincipal
public final class ClientMinPrincipal
Represents a constraint on the client, such that if the client authenticates itself, then it must authenticate itself as at least all of the specified principals. The mechanisms and credentials used to authenticate the client as those principals are not specified by this constraint. This constraint is intended for use by clients to control how much of their identity is exposed in remote calls; it is not intended for use by servers as an authorization mechanism. For example, if the client's subject contains sufficient information to authenticate as two distinct principals, the client might wish to ensure that it authenticates as one, the other, or both, depending on what the client believes is necessary for authorization at 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
,
ClientMaxPrincipalType
,
ClientMinPrincipalType
,
AuthenticationPermission
,
Serialized FormConstructor Summary | |
---|---|
ClientMinPrincipal(Collection c)
Creates a constraint containing the specified principals, with duplicates removed. |
|
ClientMinPrincipal(Principal p)
Creates a constraint containing the specified principal. |
|
ClientMinPrincipal(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 ClientMinPrincipal(Principal p)
p
- the principal
NullPointerException
- if the argument is null
public ClientMinPrincipal(Principal[] principals)
principals
- the principals
NullPointerException
- if the argument is null
or
any element is null
IllegalArgumentException
- if the argument is emptypublic ClientMinPrincipal(Collection c)
c
- the principals
NullPointerException
- if the argument is null
or
any element is null
IllegalArgumentException
- if the argument is empty or the
elements do not all implement the Principal
interfaceMethod 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 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |