Package se.curity.identityserver.sdk.config.annotation
Configuration
interfaces to provide extra information about configuration values.
The information provided by the Java types is used to the extent possible. For example, an
Optional value is made optional in the configuration service, a List value can
receive 0-N values.
The annotations in this package allow plugin authors to provide information that is impossible to provide using only
the Java type-system, such as the minimum-maximum size a List or String may take, the minimum/maximum
magnitude of a numeric value, and the pattern a String value must follow to be acceptable.
As an example, the length of a List can be constrained with the
SizeConstraint annotation.
A default value may be provided for a value simply by annotating the relevant method of the configuration interface
with one of the Default value annotations in this package.
The name of an element may be provided by the Name
annotation. This allows de-coupling the Java name from the configuration name. See
Name for more details.
- See Also:
-
Annotation InterfacesClassDescriptionProvides a default value for a boolean configuration item.Provides a default value for a double configuration item.Provides the default enum value that should be used for a method which returns a Java
enumor the type argument of anOptionalwhere that type is an enum.Provides a default value for a integer configuration item.Provides a default value for a long configuration item.Annotates the default option that should be used within aOneOfinterface.Provides a default value for a String configuration item.Provides a default value for a URI configuration item.Defines a description for a configuration item.Marks an element as being part of a list item key.Defines the name of a configuration item.Constrains the values a configuration element of typeStringmay take.Constrains the Fraction Precision of the value the element can take.Constrains an element's numeric value to within a certain range.Constrains a configuration element's size.Special annotation available for use on methods returningString(includingOptional<String>) values.