Class AuthenticationCompleteCallback
- java.lang.Object
-
- org.wildfly.security.auth.callback.AuthenticationCompleteCallback
-
- All Implemented Interfaces:
Serializable
,Callback
,ExtendedCallback
public final class AuthenticationCompleteCallback extends Object implements ExtendedCallback, Serializable
An optional callback indicating the success or failure of the authentication operation. When this callback is received, the callback handler may free any resources that were required to perform the authentication. This callback should always be sent to the callback handler last.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AuthenticationCompleteCallback
FAILED
static AuthenticationCompleteCallback
SUCCEEDED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
failed()
Determine whether authentication failed.boolean
succeeded()
Determine whether authentication succeeded.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional, needsInformation
-
-
-
-
Field Detail
-
SUCCEEDED
public static final AuthenticationCompleteCallback SUCCEEDED
-
FAILED
public static final AuthenticationCompleteCallback FAILED
-
-
Method Detail
-
succeeded
public boolean succeeded()
Determine whether authentication succeeded. Always returns the opposite offailed()
.- Returns:
true
if authentication succeeded,false
otherwise
-
failed
public boolean failed()
Determine whether authentication failed. Always returns the opposite ofsucceeded()
.- Returns:
true
if the authentication failed,false
otherwise
-
-