use of com.sun.identity.shared.validation.PositiveIntegerValidator in project OpenAM by OpenRock.
the class FSSPAuthenticationContextInfo method setAuthenticationLevel.
/**
* Sets authentication level.
*
* @param authenticationLevel Authentication Level.
* @throws FSException if <code>authenticationLevel</code>
* is negative.
*/
public void setAuthenticationLevel(String authenticationLevel) throws FSException {
PositiveIntegerValidator validator = PositiveIntegerValidator.getInstance();
try {
validator.validate(authenticationLevel);
this.authenticationLevel = Integer.parseInt(authenticationLevel);
} catch (ValidationException e) {
throw new FSException(IFSConstants.META_INVALID_LEVEL, null);
}
}
Aggregations