Package io.stargate.auth
Interface AuthenticationSubject
-
- All Known Implementing Classes:
ImmutableAuthenticationSubject
@Immutable public interface AuthenticationSubject
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AuthenticatedUserasUser()Map<String,String>customProperties()booleanisFromExternalAuth()static AuthenticationSubjectof(AuthenticatedUser user)static AuthenticationSubjectof(String token, String roleName)static AuthenticationSubjectof(String token, String roleName, boolean fromExternalAuth)static AuthenticationSubjectof(String token, String roleName, boolean fromExternalAuth, Map<String,String> properties)StringroleName()Stringtoken()
-
-
-
Method Detail
-
token
@Nullable @Parameter String token()
-
roleName
@Parameter String roleName()
-
isFromExternalAuth
@Parameter boolean isFromExternalAuth()
-
asUser
default AuthenticatedUser asUser()
-
of
static AuthenticationSubject of(String token, String roleName, boolean fromExternalAuth, Map<String,String> properties)
-
of
static AuthenticationSubject of(String token, String roleName, boolean fromExternalAuth)
-
of
static AuthenticationSubject of(String token, String roleName)
-
of
static AuthenticationSubject of(AuthenticatedUser user)
-
-