public class AuthStatus extends 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,
String authId)
Constructs an AuthStatus with given characteristics.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticatedId()
Returns the authenticated user ID for this connection.
|
AuthType |
getAuthType()
Returns the authentication type for this connection.
|
String |
getIdentityString()
Returns a non-null string that can be used to characterise the user
identity.
|
boolean |
isAuthenticated()
Indicates whether authentication has been established.
|
String |
toString() |
public static final AuthStatus NO_AUTH
public AuthStatus(AuthType authType)
authType
- authentication typepublic AuthStatus(AuthType authType, boolean isAuthenticated, 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 String getAuthenticatedId()
isAuthenticated()
is true,
but that's not guaranteed.public String getIdentityString()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.