public class IdentityValidatorConfig extends Object
| Constructor and Description |
|---|
IdentityValidatorConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPattern(String key,
String regex)
Adds a validation pattern and stores it against the provided key.
|
Pattern |
getPattern(String key)
Returns a Pattern instance for the given key
|
boolean |
patternExists(String key)
Checks if a pattern exists for the provided key
|
void |
removePattern(String key)
Removes pattern from the memory
|
public void addPattern(String key, String regex)
key - pattern keyregex - pattern regexpublic Pattern getPattern(String key)
key - pattern keypublic void removePattern(String key)
key - pattern keypublic boolean patternExists(String key)
key - pattern keyCopyright © 2016 WSO2. All rights reserved.