public class AuthStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AuthStatus |
NO_AUTH
Connection with no possible or actual authentication.
|
Constructor and Description |
---|
AuthStatus(AuthType authType)
Constructs an AuthStatus with a given type but no actual authentication.
|
AuthStatus(AuthType authType,
boolean isAuthenticated,
java.lang.String authId)
Constructs an AuthStatus with given characteristics.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthenticatedId()
Returns the authenticated user ID for this connection.
|
AuthType |
getAuthType()
Returns the authentication type for this connection.
|
java.lang.String |
getIdentityString()
Returns a non-null string that can be used to characterise the user
identity.
|
boolean |
isAuthenticated()
Indicates whether authentication has been established.
|
java.lang.String |
toString() |
public static final AuthStatus NO_AUTH
public AuthStatus(AuthType authType)
authType
- authentication typepublic AuthStatus(AuthType authType, boolean isAuthenticated, java.lang.String authId)
authType
- authentication typeisAuthenticated
- true if authentication has been establishedauthId
- user identifier for authenticated identity;
should normally be non-null if isAuthenticated is true,
but not guaranteed to bepublic AuthType getAuthType()
public boolean isAuthenticated()
public java.lang.String getAuthenticatedId()
isAuthenticated()
is true,
but that's not guaranteed.public java.lang.String getIdentityString()
public java.lang.String toString()
toString
in class java.lang.Object