public final class ClientMinPrincipalType 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,
ClientMinPrincipal,
AuthenticationPermission,
Serialized Form| Constructor and Description |
|---|
ClientMinPrincipalType(Class clazz)
Creates a constraint containing the specified class.
|
ClientMinPrincipalType(Class[] classes)
Creates a constraint containing the specified classes, with redundant
classes removed.
|
ClientMinPrincipalType(Collection c)
Creates a constraint containing the specified classes, with redundant
classes removed.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ClientMinPrincipalType(Class clazz)
clazz - the classNullPointerException - if the argument is nullIllegalArgumentException - if the argument is a primitive type,
an array type, or a final class that does not have
Principal as a superinterfacepublic ClientMinPrincipalType(Class[] classes)
c1 and c2, if
c1.isAssignableFrom(c2) is true, then
c1 is removed. That is, duplicates and supertypes 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 classesIllegalArgumentException - 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
superinterfaceNullPointerException - if the argument is null or
any element is nullpublic ClientMinPrincipalType(Collection c)
c1 and c2, if
c1.isAssignableFrom(c2) is true, then
c1 is removed. That is, duplicates and supertypes 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 classesIllegalArgumentException - 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 superinterfaceNullPointerException - if the argument is null or
any element is nullpublic Set elements()
UnsupportedOperationException
being thrown.public int hashCode()
public boolean equals(Object obj)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.