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 Modifier and Type Field Description private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description AbstractSecurityParametersResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeyInfoGeneratorlookupKeyInfoGenerator(Credential credential, NamedKeyInfoGeneratorManager manager, String keyInfoProfileName)Resolve aKeyInfoGeneratorinstance based on aNamedKeyInfoGeneratorManager,Credentialand optional KeyInfo generation profile name.protected voidresolveAndPopulateWhiteAndBlacklists(WhitelistBlacklistParameters params, CriteriaSet criteria, List<? extends WhitelistBlacklistConfiguration> configs)Resolve and populate the effective whitelist or blacklist on the supplied instance ofWhitelistBlacklistParameters.protected Collection<String>resolveEffectiveBlacklist(CriteriaSet criteria, List<? extends WhitelistBlacklistConfiguration> configs)Resolve and return the effective algorithm blacklist based on supplied configuration.protected Collection<String>resolveEffectiveWhitelist(CriteriaSet criteria, List<? extends WhitelistBlacklistConfiguration> configs)Resolve and return the effective algorithm whitelist based on supplied configuration.protected WhitelistBlacklistConfiguration.PrecedenceresolveWhitelistBlacklistPrecedence(CriteriaSet criteria, List<? extends WhitelistBlacklistConfiguration> configs)Resolve and return the effective algorithm whitelist/blacklist precedence based on supplied configuration.protected Predicate<String>resolveWhitelistBlacklistPredicate(CriteriaSet criteria, List<? extends WhitelistBlacklistConfiguration> configs)Get a predicate which operates according to the effective configured whitelist and blacklist policy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.resolver.Resolver
resolve, resolveSingle
-
-
-
-
Method Detail
-
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
-
resolveAndPopulateWhiteAndBlacklists
protected void resolveAndPopulateWhiteAndBlacklists(@Nonnull WhitelistBlacklistParameters params, @Nonnull CriteriaSet criteria, @Nonnull @NonnullElements @NotEmpty List<? extends WhitelistBlacklistConfiguration> configs)Resolve and populate the effective whitelist or blacklist on the supplied instance ofWhitelistBlacklistParameters.- Parameters:
params- the whitelist/blacklist parameters instance to populatecriteria- the input criteria being evaluatedconfigs- the effective list ofWhitelistBlacklistConfigurationinstances to consider
-
resolveWhitelistBlacklistPredicate
@Nonnull protected Predicate<String> resolveWhitelistBlacklistPredicate(@Nonnull CriteriaSet criteria, @Nonnull @NonnullElements @NotEmpty List<? extends WhitelistBlacklistConfiguration> configs)
Get a predicate which operates according to the effective configured whitelist and blacklist policy.- Parameters:
criteria- the input criteria being evaluatedconfigs- the effective list ofWhitelistBlacklistConfigurationinstances to consider- Returns:
- a predicate instance which operates accordingly to the effective whitelist and blacklist policy
-
resolveEffectiveBlacklist
@Nonnull protected Collection<String> resolveEffectiveBlacklist(@Nonnull CriteriaSet criteria, @Nonnull @NonnullElements @NotEmpty List<? extends WhitelistBlacklistConfiguration> configs)
Resolve and return the effective algorithm blacklist based on supplied configuration.- Parameters:
criteria- the input criteria being evaluatedconfigs- the effective list ofWhitelistBlacklistConfigurationinstances to consider- Returns:
- the effective algorithm blacklist
-
resolveEffectiveWhitelist
@Nonnull protected Collection<String> resolveEffectiveWhitelist(@Nonnull CriteriaSet criteria, @Nonnull @NonnullElements @NotEmpty List<? extends WhitelistBlacklistConfiguration> configs)
Resolve and return the effective algorithm whitelist based on supplied configuration.- Parameters:
criteria- the input criteria being evaluatedconfigs- the effective list ofWhitelistBlacklistConfigurationinstances to consider- Returns:
- the effective algorithm whitelist
-
resolveWhitelistBlacklistPrecedence
@Nonnull protected WhitelistBlacklistConfiguration.Precedence resolveWhitelistBlacklistPrecedence(@Nonnull CriteriaSet criteria, @Nonnull @NonnullElements @NotEmpty List<? extends WhitelistBlacklistConfiguration> configs)
Resolve and return the effective algorithm whitelist/blacklist precedence based on supplied configuration.- Parameters:
criteria- the input criteria being evaluatedconfigs- the effective list ofWhitelistBlacklistConfigurationinstances to consider- Returns:
- the effective algorithm whitelist/blacklist precedence
-
-