public class SAMLMetadataSignatureSigningParametersResolver extends BasicSignatureSigningParametersResolver
BasicSignatureSigningParametersResolver
which also supports input of SAML metadata,
specifically the SigningMethod
and DigestMethod
extension elements.
In addition to the Criterion
inputs documented in
BasicSignatureSigningParametersResolver
, the following inputs are also supported:
RoleDescriptorCriterion
- optionalConstructor and Description |
---|
SAMLMetadataSignatureSigningParametersResolver() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
credentialSupportsSigningMethod(Credential credential,
SigningMethod signingMethod)
Evaluate whether the specified credential is supported for use with the specified
SigningMethod . |
protected List<XMLObject> |
getExtensions(RoleDescriptor roleDescriptor,
QName extensionName)
Get the extensions indicated by the passed QName.
|
protected void |
resolveAndPopulateCredentialAndSignatureAlgorithm(SignatureSigningParameters params,
CriteriaSet criteria,
com.google.common.base.Predicate<String> whitelistBlacklistPredicate)
Resolve and populate the signing credential and signature method algorithm URI on the
supplied parameters instance.
|
protected String |
resolveReferenceDigestMethod(CriteriaSet criteria,
com.google.common.base.Predicate<String> whitelistBlacklistPredicate)
Resolve and return the digest method algorithm URI to use, including application of whitelist/blacklist policy.
|
credentialSupportsAlgorithm, getAlgorithmRegistry, getAlgorithmRuntimeSupportedPredicate, getEffectiveSignatureAlgorithms, getEffectiveSigningCredentials, getWhitelistBlacklistPredicate, logResult, resolve, resolveCanonicalizationAlgorithm, resolveHMACOutputLength, resolveKeyInfoGenerator, resolveSingle, setAlgorithmRegistry, validate
lookupKeyInfoGenerator, resolveAndPopulateWhiteAndBlacklists, resolveEffectiveBlacklist, resolveEffectiveWhitelist, resolveWhitelistBlacklistPrecedence, resolveWhitelistBlacklistPredicate
public SAMLMetadataSignatureSigningParametersResolver()
protected void resolveAndPopulateCredentialAndSignatureAlgorithm(@Nonnull SignatureSigningParameters params, @Nonnull CriteriaSet criteria, @Nonnull com.google.common.base.Predicate<String> whitelistBlacklistPredicate)
resolveAndPopulateCredentialAndSignatureAlgorithm
in class BasicSignatureSigningParametersResolver
params
- the parameters instance being populatedcriteria
- the input criteria being evaluatedwhitelistBlacklistPredicate
- the whitelist/blacklist predicate with which to evaluate the
candidate signing method algorithm URIsprotected boolean credentialSupportsSigningMethod(@Nonnull Credential credential, @Nonnull @NotEmpty SigningMethod signingMethod)
SigningMethod
.credential
- the credential to evaluatesigningMethod
- the signing method to evaluate@Nullable protected String resolveReferenceDigestMethod(@Nonnull CriteriaSet criteria, @Nonnull com.google.common.base.Predicate<String> whitelistBlacklistPredicate)
resolveReferenceDigestMethod
in class BasicSignatureSigningParametersResolver
criteria
- the input criteria being evaluatedwhitelistBlacklistPredicate
- the whitelist/blacklist predicate to use@Nullable protected List<XMLObject> getExtensions(@Nonnull RoleDescriptor roleDescriptor, @Nonnull QName extensionName)
roleDescriptor
- the role descriptor instance to examineextensionName
- the extension name for which to searchCopyright © 2016 JBoss by Red Hat. All rights reserved.