public class KeyDescriptorSchemaValidator extends Object implements Validator<KeyDescriptor>
KeyDescriptor
for Schema compliance.Constructor and Description |
---|
KeyDescriptorSchemaValidator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(KeyDescriptor keyDescriptor)
Checks to see if a XMLObject is valid.
|
protected void |
validateKeyInfo(KeyDescriptor keyDescriptor)
Checks that KeyInfo is present.
|
protected void |
validateUse(KeyDescriptor keyDescriptor)
Checks that use attribute has only one of allowed values.
|
public void validate(KeyDescriptor keyDescriptor) throws ValidationException
validate
in interface Validator<KeyDescriptor>
keyDescriptor
- the XMLObject to validateValidationException
- thrown if the element is not validprotected void validateKeyInfo(KeyDescriptor keyDescriptor) throws ValidationException
keyDescriptor
- the key descriptor to validateValidationException
- thrown if KeyInfo is not presentprotected void validateUse(KeyDescriptor keyDescriptor) throws ValidationException
keyDescriptor
- the key descriptor to validateValidationException
- throw in use attribute does not have a legal valueCopyright © 2018 JBoss by Red Hat. All rights reserved.