Class ServerPropertyValidator
- java.lang.Object
-
- com.sun.identity.common.configuration.ServerPropertyValidator
-
- All Implemented Interfaces:
ServiceAttributeValidator
public class ServerPropertyValidator extends Object implements ServiceAttributeValidator
Validates the values of server configuration properties.
-
-
Constructor Summary
Constructors Constructor Description ServerPropertyValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetFalseValue(String propertyKey)Returns the false value of a property.static StringgetTrueValue(String propertyKey)Returns the true value of a property.static voidvalidate(Map<String,String> properties)Validates a set of server configuration properties.booleanvalidate(Set<String> properties)Validates a set of server configuration properties.static voidvalidateProperty(Set<String> properties)Validates a set of server configuration properties.
-
-
-
Method Detail
-
validate
public boolean validate(Set<String> properties)
Validates a set of server configuration properties.- Specified by:
validatein interfaceServiceAttributeValidator- Parameters:
properties- Set of String of this format name=value.- Returns:
- true if validates successfully; false otherwise
-
validateProperty
public static void validateProperty(Set<String> properties) throws UnknownPropertyNameException, ConfigurationException
Validates a set of server configuration properties.- Parameters:
properties- Set of String of this format name=value.- Throws:
UnknownPropertyNameException- if property name is not valid.ConfigurationException- if properties is not in proper format.
-
validate
public static void validate(Map<String,String> properties) throws UnknownPropertyNameException, ConfigurationException
Validates a set of server configuration properties.- Parameters:
properties- Map of property name to value.- Throws:
UnknownPropertyNameException- if property name is not valid.ConfigurationException- if property name and value are not in proper format.
-
getTrueValue
public static String getTrueValue(String propertyKey)
Returns the true value of a property.- Parameters:
propertyKey- Key of property.- Returns:
- the true value of a property.
-
-