public class KeyDescriptorSchemaValidator extends Object implements org.opensaml.xml.validation.Validator<KeyDescriptor>
KeyDescriptor for Schema compliance.| Constructor and Description |
|---|
KeyDescriptorSchemaValidator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validate(KeyDescriptor keyDescriptor) |
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 org.opensaml.xml.validation.ValidationException
validate in interface org.opensaml.xml.validation.Validator<KeyDescriptor>org.opensaml.xml.validation.ValidationExceptionprotected void validateKeyInfo(KeyDescriptor keyDescriptor) throws org.opensaml.xml.validation.ValidationException
keyDescriptor - the key descriptor to validateorg.opensaml.xml.validation.ValidationException - thrown if KeyInfo is not presentprotected void validateUse(KeyDescriptor keyDescriptor) throws org.opensaml.xml.validation.ValidationException
keyDescriptor - the key descriptor to validateorg.opensaml.xml.validation.ValidationException - throw in use attribute does not have a legal valueCopyright © 1999–2015. All rights reserved.