|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.security.SAMLSignatureProfileValidator
public class SAMLSignatureProfileValidator
A validator for instances of Signature, which validates that the signature meets security-related
requirements indicated by the SAML profile of XML Signature.
| Constructor Summary | |
|---|---|
SAMLSignatureProfileValidator()
|
|
| Method Summary | |
|---|---|
void |
validate(org.opensaml.xml.signature.Signature signature)
|
protected void |
validateObjectChildren(org.apache.xml.security.signature.XMLSignature apacheSig)
Validate that the Signature instance does not contain any ds:Object children. |
protected org.apache.xml.security.signature.Reference |
validateReference(org.apache.xml.security.signature.XMLSignature apacheSig)
Validate the Signature's SignedInfo Reference. |
protected void |
validateReferenceURI(java.lang.String uri,
SignableSAMLObject signableObject)
Validate the Signature's Reference URI. |
protected void |
validateReferenceURI(java.lang.String uri,
java.lang.String id)
Validate the Reference URI and parent ID attribute values. |
protected void |
validateSignatureImpl(org.opensaml.xml.signature.impl.SignatureImpl sigImpl)
Validate an instance of SignatureImpl, which is in turn based on underlying Apache XML Security
XMLSignature instance. |
protected void |
validateTransforms(org.apache.xml.security.signature.Reference reference)
Validate the transforms included in the Signature Reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAMLSignatureProfileValidator()
| Method Detail |
|---|
public void validate(org.opensaml.xml.signature.Signature signature)
throws org.opensaml.xml.validation.ValidationException
validate in interface org.opensaml.xml.validation.Validator<org.opensaml.xml.signature.Signature>org.opensaml.xml.validation.ValidationException
protected void validateSignatureImpl(org.opensaml.xml.signature.impl.SignatureImpl sigImpl)
throws org.opensaml.xml.validation.ValidationException
SignatureImpl, which is in turn based on underlying Apache XML Security
XMLSignature instance.
sigImpl - the signature implementation object to validate
org.opensaml.xml.validation.ValidationException - thrown if the signature is not valid with respect to the profile
protected org.apache.xml.security.signature.Reference validateReference(org.apache.xml.security.signature.XMLSignature apacheSig)
throws org.opensaml.xml.validation.ValidationException
apacheSig - the Apache XML Signature instance
org.opensaml.xml.validation.ValidationException - thrown if the Signature does not contain exactly 1 Reference, or if there is an error
obtaining the Reference instance
protected void validateReferenceURI(java.lang.String uri,
SignableSAMLObject signableObject)
throws org.opensaml.xml.validation.ValidationException
uri - the Signature Reference URI attribute valuesignableObject - the SignableSAMLObject whose signature is being validated
org.opensaml.xml.validation.ValidationException - if the URI is invalid or doesn't resolve to the expected DOM node
protected void validateReferenceURI(java.lang.String uri,
java.lang.String id)
throws org.opensaml.xml.validation.ValidationException
uri - the Signature Reference URI attribute valueid - the Signature parents ID attribute value
org.opensaml.xml.validation.ValidationException - thrown if the URI or ID attribute values are invalid
protected void validateTransforms(org.apache.xml.security.signature.Reference reference)
throws org.opensaml.xml.validation.ValidationException
reference - the Signature reference containing the transforms to evaluate
org.opensaml.xml.validation.ValidationException - thrown if the set of transforms is invalid
protected void validateObjectChildren(org.apache.xml.security.signature.XMLSignature apacheSig)
throws org.opensaml.xml.validation.ValidationException
apacheSig - the Apache XML Signature instance
org.opensaml.xml.validation.ValidationException - if the signature contains ds:Object children
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||