Class AuthStatusUtils
- java.lang.Object
-
- org.forgerock.caf.authentication.framework.AuthStatusUtils
-
public final class AuthStatusUtils extends Object
Utility class providing utility methods for determining the meaning behind each of the differentAuthStatus
values.- Since:
- 1.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
asString
public static String asString(javax.security.auth.message.AuthStatus authStatus)
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
.
-
-