public class AuthenticationResult extends java.lang.Object implements OpenContentResultLegacy
IAuthentication
methods, A simple POJO class to store the return values
of authentication. It contains a ticket if authentication was successful, and errors
and/or exceptions containing the reason authentication failed.
Member Variable | Description |
Boolean valid |
Equals true authentication was successful, otherwise false. |
String ticket |
Ticket associated with a successful authentication attempt. |
String error |
Error message associated with the authentication attempt if authentication failed. |
String exception |
Exception associated with the authentication attempt if authentication failed. |
Constructor and Description |
---|
AuthenticationResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getError()
Get the error message associated with the authentication attempt if
authentication failed.
|
java.lang.String |
getException()
Get the exception associated with the authentication attempt if
authentication failed.
|
java.lang.String |
getTicket()
Get the ticket associated with a successful authentication attempt.
|
boolean |
isValid()
Determine whether authentication was successful.
|
void |
setError(java.lang.String error) |
void |
setException(java.lang.String exception) |
void |
setTicket(java.lang.String ticket) |
void |
setValid(boolean valid) |
public java.lang.String getException()
public void setException(java.lang.String exception)
setException
in interface OpenContentResultLegacy
public java.lang.String getError()
public void setError(java.lang.String error)
setError
in interface OpenContentResultLegacy
public java.lang.String getTicket()
public void setTicket(java.lang.String ticket)
public boolean isValid()
getTicket()
method will return a non-null value. If
authentication was unsuccessful, either getException()
or
getError()
should return non-null.public void setValid(boolean valid)
setValid
in interface OpenContentResultLegacy