public final class ServerMaxPrincipal extends Object implements InvocationConstraint, Serializable
The use of an instance of this class does not directly imply a
ServerAuthentication.YES
constraint; that must be specified
separately to ensure that the server actually authenticates itself.
Because this constraint is conditional on server authentication, it does
not conflict with ServerAuthentication.NO
.
ServerAuthentication
,
ServerMinPrincipal
,
AuthenticationPermission
,
Serialized FormConstructor and Description |
---|
ServerMaxPrincipal(AtomicSerial.GetArg arg)
AtomicSerial constructor.
|
ServerMaxPrincipal(Collection c)
Creates a constraint containing the specified principals, with
duplicates removed.
|
ServerMaxPrincipal(Principal p)
Creates a constraint containing the specified principal.
|
ServerMaxPrincipal(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 ServerMaxPrincipal(AtomicSerial.GetArg arg) throws IOException
arg
- atomic deserialization parameterIOException
- if there are I/O errors while reading from GetArg's
underlying InputStream
InvalidObjectException
- if object invariants aren't satisfied.public ServerMaxPrincipal(Principal p)
p
- the principalNullPointerException
- if the argument is null
public ServerMaxPrincipal(Principal[] principals)
principals
- the principalsIllegalArgumentException
- if the argument is emptyNullPointerException
- if the argument is null
or
any element is null
public ServerMaxPrincipal(Collection c)
c
- the principalsIllegalArgumentException
- if the argument is empty or the
elements do not all implement the Principal
interfaceNullPointerException
- if the argument is null
or
any element is null
public Set elements()
UnsupportedOperationException
being thrown.public int hashCode()
public boolean equals(Object obj)
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.