Class BearerAuthorizationHeader
java.lang.Object
dev.getelements.elements.security.BearerAuthorizationHeader
Simplest type of Auth header, the bearer header.
-
Constructor Summary
ConstructorsConstructorDescriptionBearerAuthorizationHeader
(String credentials) Constructs an new instance ofBearerAuthorizationHeader
with the supplied credentials. -
Method Summary
Modifier and TypeMethodDescriptionGets the credentials as JWT Credentials.Gets the credentials associated with this authorization header.
-
Constructor Details
-
BearerAuthorizationHeader
Constructs an new instance ofBearerAuthorizationHeader
with the supplied credentials.- Parameters:
credentials
-
-
-
Method Details
-
getCredentials
Gets the credentials associated with this authorization header.- Returns:
- the credentials
-
asJWTCredentials
Gets the credentials as JWT Credentials.- Returns:
- the credentials as JWT Credentials.
-