public class KeyInfoTypeSchemaValidator extends Object implements Validator<KeyInfoType>
KeyInfoType
for Schema compliance.Constructor and Description |
---|
KeyInfoTypeSchemaValidator() |
Modifier and Type | Method and Description |
---|---|
protected static Set<QName> |
getValidDSChildNames()
Get the QNames corresponding to the valid KeyInfo children
defined in the XML Signature namespace.
|
void |
validate(KeyInfoType xmlObject)
Checks to see if a XMLObject is valid.
|
protected void |
validateChildrenNamespaces(KeyInfoType xmlObject)
Validate that all children are either ones defined within the XML Signature schema,
or are from another namespace.
|
protected void |
validateChildrenPresence(KeyInfoType xmlObject)
Validate that at least child is present.
|
public void validate(KeyInfoType xmlObject) throws ValidationException
validate
in interface Validator<KeyInfoType>
xmlObject
- the XMLObject to validateValidationException
- thrown if the element is not validprotected static Set<QName> getValidDSChildNames()
protected void validateChildrenPresence(KeyInfoType xmlObject) throws ValidationException
xmlObject
- the object to validateValidationException
- thrown if the object is invalidprotected void validateChildrenNamespaces(KeyInfoType xmlObject) throws ValidationException
xmlObject
- the object to validateValidationException
- thrown if the object is invalidCopyright © 2018 JBoss by Red Hat. All rights reserved.