class X500Constraints extends Object
Modifier and Type | Field and Description |
---|---|
private InvocationConstraints |
distilled |
private static Set |
principalConstraints |
private static Object |
SUPPORTED |
private static Set |
supportedAnnouncementConstraints |
private static Set |
supportedRequestConstraints |
private static Object |
UNSUPPORTED |
Modifier | Constructor and Description |
---|---|
private |
X500Constraints(InvocationConstraints distilled) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
checkClientPrincipal(X500Principal principal)
Checks the given client principal against the constraints represented by
this instance, returning the number of preferences satisfied, or -1 if
the constraint requirements are not satisfied by the principal.
|
(package private) int |
checkServerPrincipal(X500Principal principal)
Checks the given server principal against the constraints represented by
this instance, returning the number of preferences satisfied, or -1 if
the constraint requirements are not satisfied by the principal.
|
private static boolean |
clientPrincipalSatisfies(X500Principal principal,
InvocationConstraint constraint)
Returns true if the specified client principal satisfies the given
constraint; returns false otherwise.
|
private static Object |
distill(InvocationConstraint constraint,
boolean request)
Returns distilled (principal-dependent) constraint, or
SUPPORTED/UNSUPPORTED if the constraint is unconditionally supported or
not supported.
|
private static Collection |
distill(Set constraints,
boolean request,
boolean required)
Returns principal-dependent constraints distilled from the given set of
overall constraints.
|
(package private) static X500Constraints |
process(InvocationConstraints constraints,
boolean request)
Returns X500Constraints instance representing the processed constraints.
|
private static boolean |
serverPrincipalSatisfies(X500Principal principal,
InvocationConstraint constraint)
Returns true if the specified server principal satisfies the given
constraint; returns false otherwise.
|
private static final Object SUPPORTED
private static final Object UNSUPPORTED
private static final Set supportedRequestConstraints
private static final Set supportedAnnouncementConstraints
private static final Set principalConstraints
private final InvocationConstraints distilled
private X500Constraints(InvocationConstraints distilled)
static X500Constraints process(InvocationConstraints constraints, boolean request) throws UnsupportedConstraintException
UnsupportedConstraintException
int checkClientPrincipal(X500Principal principal)
int checkServerPrincipal(X500Principal principal)
private static Collection distill(Set constraints, boolean request, boolean required) throws UnsupportedConstraintException
UnsupportedConstraintException
private static Object distill(InvocationConstraint constraint, boolean request)
private static boolean clientPrincipalSatisfies(X500Principal principal, InvocationConstraint constraint)
private static boolean serverPrincipalSatisfies(X500Principal principal, InvocationConstraint constraint)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.