@ThreadSafe public class SAMLSchemaBuilder extends Object
Schema
s for validating SAML 1.0, 1.1, and 2.0.
Additional schemas may be included in the resulting object by supplying their locations
to an injected SchemaBuilder
object.
Modifier and Type | Class and Description |
---|---|
static class |
SAMLSchemaBuilder.SAML1Version
Identifies which SAML 1.x version is in use.
|
Constructor and Description |
---|
SAMLSchemaBuilder(SAMLSchemaBuilder.SAML1Version ver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Schema |
getSAMLSchema()
Get a schema that can validate SAML 1.x, 2.0, and all registered extensions.
|
void |
setSchemaBuilder(SchemaBuilder builder)
Set a custom
SchemaBuilder to use. |
public SAMLSchemaBuilder(@Nonnull SAMLSchemaBuilder.SAML1Version ver)
A default SchemaBuilder
is constructed, and injected with a
ClasspathResolver
for resolving supplementary schemas.
ver
- the SAML 1.x version to usepublic void setSchemaBuilder(@Nonnull SchemaBuilder builder)
SchemaBuilder
to use.builder
- SchemaBuilder to use@Nonnull public Schema getSAMLSchema() throws SAXException
SAXException
- thrown if a schema object cannot be createdCopyright © 2016 JBoss by Red Hat. All rights reserved.