public interface CoreSchemaCfg extends SchemaProviderCfg
Core Schema define the core schema elements to load.
Modifier and Type | Method and Description |
---|---|
void |
addCoreSchemaChangeListener(ConfigurationChangeListener<CoreSchemaCfg> listener)
Register to be notified when this Core Schema is changed.
|
Class<? extends CoreSchemaCfg> |
configurationClass()
Gets the configuration class associated with this Core Schema.
|
SortedSet<String> |
getDisabledMatchingRule()
Gets the "disabled-matching-rule" property.
|
SortedSet<String> |
getDisabledSyntax()
Gets the "disabled-syntax" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
CoreSchemaCfgDefn.JsonValidationPolicy |
getJsonValidationPolicy()
Gets the "json-validation-policy" property.
|
boolean |
isAllowAttributeTypesWithNoSupOrSyntax()
Gets the "allow-attribute-types-with-no-sup-or-syntax" property.
|
boolean |
isAllowZeroLengthValuesDirectoryString()
Gets the "allow-zero-length-values-directory-string" property.
|
boolean |
isStrictFormatCertificates()
Gets the "strict-format-certificates" property.
|
boolean |
isStrictFormatCountryString()
Gets the "strict-format-country-string" property.
|
boolean |
isStrictFormatJpegPhotos()
Gets the "strict-format-jpeg-photos" property.
|
boolean |
isStrictFormatTelephoneNumbers()
Gets the "strict-format-telephone-numbers" property.
|
boolean |
isStripSyntaxMinUpperBoundAttributeTypeDescription()
Gets the "strip-syntax-min-upper-bound-attribute-type-description" property.
|
void |
removeCoreSchemaChangeListener(ConfigurationChangeListener<CoreSchemaCfg> listener)
Deregister an existing Core Schema configuration change listener.
|
addChangeListener, isEnabled, removeChangeListener
dn, name
Class<? extends CoreSchemaCfg> configurationClass()
configurationClass
in interface Configuration
configurationClass
in interface SchemaProviderCfg
void addCoreSchemaChangeListener(ConfigurationChangeListener<CoreSchemaCfg> listener)
listener
- The Core Schema configuration change listener.void removeCoreSchemaChangeListener(ConfigurationChangeListener<CoreSchemaCfg> listener)
listener
- The Core Schema configuration change listener.boolean isAllowAttributeTypesWithNoSupOrSyntax()
Indicates whether the schema should allow attribute type definitions that do not declare a superior attribute type or syntax
When set to true, invalid attribute type definitions will use the default syntax.
boolean isAllowZeroLengthValuesDirectoryString()
Indicates whether zero-length (that is, an empty string) values are allowed for directory string.
This is technically not allowed by the revised LDAPv3 specification, but some environments may require it for backward compatibility with servers that do allow it.
SortedSet<String> getDisabledMatchingRule()
The set of disabled matching rules.
Matching rules must be specified using the syntax: OID, or use the default value 'NONE' to specify no value.
SortedSet<String> getDisabledSyntax()
The set of disabled syntaxes.
Syntaxes must be specified using the syntax: OID, or use the default value 'NONE' to specify no value.
String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the Core Schema implementation.
getJavaClass
in interface SchemaProviderCfg
CoreSchemaCfgDefn.JsonValidationPolicy getJsonValidationPolicy()
Specifies the policy that will be used when validating JSON syntax values.
boolean isStrictFormatCertificates()
Indicates whether X.509 Certificate values are required to strictly comply with the standard definition for this syntax.
When set to false, certificates will not be validated and, as a result any sequence of bytes will be acceptable.
boolean isStrictFormatCountryString()
Indicates whether country code values are required to strictly comply with the standard definition for this syntax.
When set to false, country codes will not be validated and, as a result any string containing 2 characters will be acceptable.
boolean isStrictFormatJpegPhotos()
Indicates whether to require JPEG values to strictly comply with the standard definition for this syntax.
boolean isStrictFormatTelephoneNumbers()
Indicates whether to require telephone number values to strictly comply with the standard definition for this syntax.
boolean isStripSyntaxMinUpperBoundAttributeTypeDescription()
Indicates whether the suggested minimum upper bound appended to an attribute's syntax OID in it's schema definition Attribute Type Description is stripped off.
When retrieving the server's schema, some APIs (JNDI) fail in their syntax lookup methods, because they do not parse this value correctly. This configuration option allows the server to be configured to provide schema definitions these APIs can parse correctly.
Copyright 2010-2018 ForgeRock AS.