use of com.sun.identity.shared.validation.IntegerValidator in project OpenAM by OpenRock.
the class FSIDPAuthenticationContextInfo method setLevel.
/**
* Sets level.
*
* @param level Strength level.
* @throws FSException if <code>level</code> is not
* an integer.
*/
public void setLevel(String level) throws FSException {
IntegerValidator validator = IntegerValidator.getInstance();
try {
validator.validate(level);
this.level = Integer.parseInt(level);
} catch (ValidationException e) {
throw new FSException(IFSConstants.META_INVALID_LEVEL, null);
}
}
Aggregations