EndpointType
- type of endpointpublic abstract class AbstractEndpointResolver<EndpointType extends Endpoint> extends AbstractIdentifiedInitializableComponent implements EndpointResolver<EndpointType>
SAML metadata rules are followed for deriving candidate endpoints to evaluate. The base class implements only a subset of required functionality, then extracts a set of candidates from metadata if present, and delegates to a subclass to actually evaluate each one for acceptability.
The supported Criterion
types and their use follows:
EndpointCriterion
(required)
Endpoint
(s) to resolve that identifies at minimum the
type of endpoint object (via schema type or element name) to resolve. It MAY contain other attributes that
will be used in matching candidate endpoints for suitability, such as index, binding, location, etc. If so
marked, it may also be resolved as a trusted endpoint without additional verification required.
RoleDescriptorCriterion
EndpointCriterion
) is returned as the sole result,
whatever its completeness/usability, allowing for subclass validation.
Subclasses should override the {doCheckEndpoint(CriteriaSet, Endpoint)
method to implement
further criteria.
Constructor and Description |
---|
AbstractEndpointResolver()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doCheckEndpoint(CriteriaSet criteria,
EndpointType endpoint)
Apply the supplied criteria to a candidate endpoint to determine its suitability.
|
protected String |
getLogPrefix()
Return a prefix for logging messages for this component.
|
Iterable<EndpointType> |
resolve(CriteriaSet criteria)
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
|
EndpointType |
resolveSingle(CriteriaSet criteria)
Process the specified criteria and return a single instance of the product type
which satisfies the criteria.
|
doInitialize, getId, setId
destroy, doDestroy, initialize, isDestroyed, isInitialized
@Nonnull @NonnullElements public Iterable<EndpointType> resolve(@Nullable CriteriaSet criteria) throws ResolverException
resolve
in interface Resolver<EndpointType extends Endpoint,CriteriaSet>
criteria
- the criteria to evaluate or processResolverException
- thrown if there is an error processing the specified criteria@Nullable public EndpointType resolveSingle(@Nullable CriteriaSet criteria) throws ResolverException
resolveSingle
in interface Resolver<EndpointType extends Endpoint,CriteriaSet>
criteria
- the criteria to evaluate or processResolverException
- thrown if there is an error processing the specified criteriaprotected boolean doCheckEndpoint(@Nonnull CriteriaSet criteria, @Nonnull EndpointType endpoint)
criteria
- input criteria setendpoint
- candidate endpointCopyright © 2016 JBoss by Red Hat. All rights reserved.