Package org.opensaml.xmlsec.impl
Class AbstractSecurityParametersResolver<ProductType>
java.lang.Object
org.opensaml.xmlsec.impl.AbstractSecurityParametersResolver<ProductType>
- Type Parameters:
ProductType- the type of output produced by the resolver
- All Implemented Interfaces:
Resolver<ProductType,CriteriaSet>
- Direct Known Subclasses:
BasicDecryptionParametersResolver,BasicEncryptionParametersResolver,BasicSignatureSigningParametersResolver,BasicSignatureValidationParametersResolver
public abstract class AbstractSecurityParametersResolver<ProductType>
extends Object
implements Resolver<ProductType,CriteriaSet>
Abstract base class for security parameters resolvers which supplies commonly used functionality for reuse.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyInfoGeneratorlookupKeyInfoGenerator(Credential credential, NamedKeyInfoGeneratorManager manager, String keyInfoProfileName) Resolve aKeyInfoGeneratorinstance based on aNamedKeyInfoGeneratorManager,Credentialand optional KeyInfo generation profile name.protected voidresolveAndPopulateIncludesExcludes(AlgorithmPolicyParameters params, CriteriaSet criteria, List<? extends AlgorithmPolicyConfiguration> configs) Resolve and populate the effective includes or excludes on the supplied instance ofAlgorithmPolicyParameters.protected Collection<String>resolveEffectiveExcludes(CriteriaSet criteria, List<? extends AlgorithmPolicyConfiguration> configs) Resolve and return the effective algorithm excludes based on supplied configuration.protected Collection<String>resolveEffectiveIncludes(CriteriaSet criteria, List<? extends AlgorithmPolicyConfiguration> configs) Resolve and return the effective algorithm includes based on supplied configuration.protected AlgorithmPolicyConfiguration.PrecedenceresolveIncludeExcludePrecedence(CriteriaSet criteria, List<? extends AlgorithmPolicyConfiguration> configs) Resolve and return the effective algorithm include/exclude precedence based on supplied configuration.resolveIncludeExcludePredicate(CriteriaSet criteria, List<? extends AlgorithmPolicyConfiguration> configs) Get a predicate which operates according to the effective configured include and exclude policy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.resolver.Resolver
resolve, resolveSingle
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger.
-
-
Constructor Details
-
AbstractSecurityParametersResolver
public AbstractSecurityParametersResolver()
-
-
Method Details
-
lookupKeyInfoGenerator
@Nullable protected KeyInfoGenerator lookupKeyInfoGenerator(@Nonnull Credential credential, @Nullable NamedKeyInfoGeneratorManager manager, @Nullable String keyInfoProfileName) Resolve aKeyInfoGeneratorinstance based on aNamedKeyInfoGeneratorManager,Credentialand optional KeyInfo generation profile name.- Parameters:
credential- the credential for which a KeyInfo generator is neededmanager- the named KeyInfo generator manager instancekeyInfoProfileName- KeyInfo generation profile name- Returns:
- the resolved KeyInfo generator instance, or null
-