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
- optionalModifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Logger.
|
Constructor and Description |
---|
SAMLMetadataSignatureSigningParametersResolver() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
credentialSupportsSigningMethod(org.opensaml.security.credential.Credential credential,
SigningMethod signingMethod)
Evaluate whether the specified credential is supported for use with the specified
SigningMethod . |
protected List<org.opensaml.core.xml.XMLObject> |
getExtensions(RoleDescriptor roleDescriptor,
QName extensionName)
Get the extensions indicated by the passed QName.
|
protected void |
resolveAndPopulateCredentialAndSignatureAlgorithm(org.opensaml.xmlsec.SignatureSigningParameters params,
net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria,
com.google.common.base.Predicate<String> whitelistBlacklistPredicate) |
protected String |
resolveReferenceDigestMethod(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria,
com.google.common.base.Predicate<String> whitelistBlacklistPredicate) |
credentialSupportsAlgorithm, getAlgorithmRegistry, getAlgorithmRuntimeSupportedPredicate, getEffectiveSignatureAlgorithms, getEffectiveSigningCredentials, getWhitelistBlacklistPredicate, logResult, resolve, resolveCanonicalizationAlgorithm, resolveHMACOutputLength, resolveKeyInfoGenerator, resolveSingle, setAlgorithmRegistry, validate
lookupKeyInfoGenerator, resolveAndPopulateWhiteAndBlacklists, resolveEffectiveBlacklist, resolveEffectiveWhitelist, resolveWhitelistBlacklistPrecedence, resolveWhitelistBlacklistPredicate
@Nonnull private org.slf4j.Logger log
public SAMLMetadataSignatureSigningParametersResolver()
protected void resolveAndPopulateCredentialAndSignatureAlgorithm(@Nonnull org.opensaml.xmlsec.SignatureSigningParameters params, @Nonnull net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria, @Nonnull com.google.common.base.Predicate<String> whitelistBlacklistPredicate)
protected boolean credentialSupportsSigningMethod(@Nonnull org.opensaml.security.credential.Credential credential, @Nonnull @NotEmpty SigningMethod signingMethod)
SigningMethod
.credential
- the credential to evaluatesigningMethod
- the signing method to evaluate@Nullable protected String resolveReferenceDigestMethod(@Nonnull net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria, @Nonnull com.google.common.base.Predicate<String> whitelistBlacklistPredicate)
resolveReferenceDigestMethod
in class BasicSignatureSigningParametersResolver
@Nullable protected List<org.opensaml.core.xml.XMLObject> getExtensions(@Nonnull RoleDescriptor roleDescriptor, @Nonnull QName extensionName)
roleDescriptor
- the role descriptor instance to examineextensionName
- the extension name for which to searchCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.