public final class ClientMinPrincipal extends Object implements InvocationConstraint, Serializable
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ClientMinPrincipal(Principal p)
p
- the principalNullPointerException
- if the argument is null
public ClientMinPrincipal(Principal[] principals)
principals
- the principalsNullPointerException
- if the argument is null
or
any element is null
IllegalArgumentException
- if the argument is emptypublic ClientMinPrincipal(Collection c)
c
- the principalsNullPointerException
- 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
interfacepublic Set elements()
UnsupportedOperationException
being thrown.public int hashCode()
public boolean equals(Object obj)
Copyright © GigaSpaces.