Class AuthStatusUtils
java.lang.Object
org.forgerock.caf.authentication.framework.AuthStatusUtils
Utility class providing utility methods for determining the meaning behind each of the different
AuthStatus
values.- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
asString
(javax.security.auth.message.AuthStatus authStatus) Converts the givenAuthStatus
into itsString
representation.static boolean
isFailure
(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.FAILURE
.static boolean
isNull
(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isnull
.static boolean
isSendContinue
(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SEND_CONTINUE
.static boolean
isSendFailure
(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SEND_FAILURE
.static boolean
isSendSuccess
(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SEND_SUCCESS
.static boolean
isSuccess
(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SUCCESS
.
-
Method Details
-
asString
Converts the givenAuthStatus
into itsString
representation.- Parameters:
authStatus
- TheAuthStatus
.- Returns:
- An AuthStatus String.
-
isSuccess
public static boolean isSuccess(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SUCCESS
.- Parameters:
authStatus
- TheAuthStatus
value.- Returns:
true
if the givenAuthStatus
value isAuthStatus.SUCCESS
.
-
isSendSuccess
public static boolean isSendSuccess(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SEND_SUCCESS
.- Parameters:
authStatus
- TheAuthStatus
value.- Returns:
true
if the givenAuthStatus
value isAuthStatus.SEND_SUCCESS
.
-
isSendContinue
public static boolean isSendContinue(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SEND_CONTINUE
.- Parameters:
authStatus
- TheAuthStatus
value.- Returns:
true
if the givenAuthStatus
value isAuthStatus.SEND_CONTINUE
.
-
isSendFailure
public static boolean isSendFailure(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.SEND_FAILURE
.- Parameters:
authStatus
- TheAuthStatus
value.- Returns:
true
if the givenAuthStatus
value isAuthStatus.SEND_FAILURE
.
-
isFailure
public static boolean isFailure(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isAuthStatus.FAILURE
.- Parameters:
authStatus
- TheAuthStatus
value.- Returns:
true
if the givenAuthStatus
value isAuthStatus.FAILURE
.
-
isNull
public static boolean isNull(javax.security.auth.message.AuthStatus authStatus) Returnstrue
if the givenAuthStatus
value isnull
.- Parameters:
authStatus
- TheAuthStatus
value.- Returns:
true
if the givenAuthStatus
value isnull
.
-