public class SAMLSignatureProfileValidator extends Object implements org.opensaml.xmlsec.signature.support.SignaturePrevalidator
Signature, which validates that the signature meets security-related
requirements indicated by the SAML profile of XML Signature.| Constructor and Description |
|---|
SAMLSignatureProfileValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(org.opensaml.xmlsec.signature.Signature signature) |
protected void |
validateObjectChildren(XMLSignature apacheSig)
Validate that the Signature instance does not contain any ds:Object children.
|
protected Reference |
validateReference(XMLSignature apacheSig)
Validate the Signature's SignedInfo Reference.
|
protected void |
validateReferenceURI(String uri,
SignableSAMLObject signableObject)
Validate the Signature's Reference URI.
|
protected void |
validateReferenceURI(String uri,
String id)
Validate the Reference URI and parent ID attribute values.
|
protected void |
validateSignatureImpl(SignatureImpl sigImpl)
Validate an instance of
SignatureImpl, which is in turn based on underlying Apache XML Security
XMLSignature instance. |
protected void |
validateTransforms(Reference reference)
Validate the transforms included in the Signature Reference.
|
private final Logger log
public void validate(@Nonnull org.opensaml.xmlsec.signature.Signature signature) throws org.opensaml.xmlsec.signature.support.SignatureException
validate in interface org.opensaml.xmlsec.signature.support.SignaturePrevalidatororg.opensaml.xmlsec.signature.support.SignatureExceptionprotected void validateSignatureImpl(SignatureImpl sigImpl) throws org.opensaml.xmlsec.signature.support.SignatureException
SignatureImpl, which is in turn based on underlying Apache XML Security
XMLSignature instance.sigImpl - the signature implementation object to validateorg.opensaml.xmlsec.signature.support.SignatureException - thrown if the signature is not valid with respect to the profileprotected Reference validateReference(XMLSignature apacheSig) throws org.opensaml.xmlsec.signature.support.SignatureException
apacheSig - the Apache XML Signature instanceorg.opensaml.xmlsec.signature.support.SignatureException - thrown if the Signature does not contain exactly 1 Reference, or if there is an error
obtaining the Reference instanceprotected void validateReferenceURI(String uri, SignableSAMLObject signableObject) throws org.opensaml.xmlsec.signature.support.SignatureException
uri - the Signature Reference URI attribute valuesignableObject - the SignableSAMLObject whose signature is being validatedorg.opensaml.xmlsec.signature.support.SignatureException - if the URI is invalid or doesn't resolve to the expected DOM nodeprotected void validateReferenceURI(String uri, String id) throws org.opensaml.xmlsec.signature.support.SignatureException
uri - the Signature Reference URI attribute valueid - the Signature parents ID attribute valueorg.opensaml.xmlsec.signature.support.SignatureException - thrown if the URI or ID attribute values are invalidprotected void validateTransforms(Reference reference) throws org.opensaml.xmlsec.signature.support.SignatureException
reference - the Signature reference containing the transforms to evaluateorg.opensaml.xmlsec.signature.support.SignatureException - thrown if the set of transforms is invalidprotected void validateObjectChildren(XMLSignature apacheSig) throws org.opensaml.xmlsec.signature.support.SignatureException
apacheSig - the Apache XML Signature instanceorg.opensaml.xmlsec.signature.support.SignatureException - if the signature contains ds:Object childrenCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.