Class CustomJWTCredentials
java.lang.Object
dev.getelements.elements.security.CustomJWTCredentials
JWT Credentials used with custom auth schemes.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomJWTCredentials
(JWTCredentials credentials) Creates aCustomJWTCredentials
from the suppliedDecodedJWT
. -
Method Summary
Modifier and TypeMethodDescriptionGets theJWTCredentials
that was used to make this instance.Gets the subject of thegetUser()
Gets the raw user asMap
Gets theUserKey
.
-
Field Details
-
AUTH_TYPE
- See Also:
-
-
Constructor Details
-
CustomJWTCredentials
Creates aCustomJWTCredentials
from the suppliedDecodedJWT
. Throwing the appropriate exception if the JWT cannot be understood.- Parameters:
credentials
- the credentials
-
-
Method Details
-
getSubject
Gets the subject of the- Returns:
- gets the subject.
-
getUserKey
Gets theUserKey
.- Returns:
- the user key
-
getUser
Gets the raw user asMap
- Returns:
- the raw user object.
-
getCredentials
Gets theJWTCredentials
that was used to make this instance.- Returns:
- the
JWTCredentials
-