Package io.jans.as.server.service.token
Class TokenService
- java.lang.Object
-
- io.jans.as.server.service.token.TokenService
-
@Named public class TokenService extends java.lang.Object
Token specific service methods- Author:
- Yuriy Movchan Date: 10/03/2012
-
-
Constructor Summary
Constructors Constructor Description TokenService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.String
extractToken(@Nullable java.lang.String authorizationParameter, @NotNull HttpAuthTokenType tokenType)
@Nullable AuthorizationGrant
getAuthorizationGrant(@Nullable java.lang.String authorization)
@Nullable AuthorizationGrant
getAuthorizationGrant(@Nullable java.lang.String authorization, @Nullable HttpAuthTokenType tokenType)
@Nullable AuthorizationGrant
getBasicAuthorizationGrant(@Nullable java.lang.String authorization)
@Nullable java.lang.String
getBasicToken(@Nullable java.lang.String authorizationParameter)
@Nullable AuthorizationGrant
getBearerAuthorizationGrant(@Nullable java.lang.String authorization)
@Nullable java.lang.String
getBearerToken(@Nullable java.lang.String authorizationParameter)
@NotNull java.lang.String
getClientDn(@Nullable java.lang.String p_authorization)
@Nullable java.lang.String
getToken(@Nullable java.lang.String authorization)
@Nullable java.lang.String
getToken(@Nullable java.lang.String authorization, @Nullable HttpAuthTokenType... allowedTokenTypes)
boolean
isBasicAuthToken(@Nullable java.lang.String authorizationParameter)
boolean
isBearerAuthToken(@Nullable java.lang.String authorizationParameter)
boolean
isNegotiateAuthToken(@Nullable java.lang.String authorizationParameter)
boolean
isToken(@Nullable java.lang.String authorizationParameter, @NotNull HttpAuthTokenType tokenType)
-
-
-
Method Detail
-
isToken
public boolean isToken(@Nullable @Nullable java.lang.String authorizationParameter, @NotNull @NotNull HttpAuthTokenType tokenType)
-
extractToken
@Nullable public @Nullable java.lang.String extractToken(@Nullable @Nullable java.lang.String authorizationParameter, @NotNull @NotNull HttpAuthTokenType tokenType)
-
isBasicAuthToken
public boolean isBasicAuthToken(@Nullable @Nullable java.lang.String authorizationParameter)
-
isBearerAuthToken
public boolean isBearerAuthToken(@Nullable @Nullable java.lang.String authorizationParameter)
-
isNegotiateAuthToken
public boolean isNegotiateAuthToken(@Nullable @Nullable java.lang.String authorizationParameter)
-
getBasicToken
@Nullable public @Nullable java.lang.String getBasicToken(@Nullable @Nullable java.lang.String authorizationParameter)
-
getBearerToken
@Nullable public @Nullable java.lang.String getBearerToken(@Nullable @Nullable java.lang.String authorizationParameter)
-
getToken
@Nullable public @Nullable java.lang.String getToken(@Nullable @Nullable java.lang.String authorization)
-
getToken
@Nullable public @Nullable java.lang.String getToken(@Nullable @Nullable java.lang.String authorization, @Nullable @Nullable HttpAuthTokenType... allowedTokenTypes)
-
getAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getAuthorizationGrant(@Nullable @Nullable java.lang.String authorization)
-
getBearerAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getBearerAuthorizationGrant(@Nullable @Nullable java.lang.String authorization)
-
getBasicAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getBasicAuthorizationGrant(@Nullable @Nullable java.lang.String authorization)
-
getAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getAuthorizationGrant(@Nullable @Nullable java.lang.String authorization, @Nullable @Nullable HttpAuthTokenType tokenType)
-
getClientDn
@NotNull public @NotNull java.lang.String getClientDn(@Nullable @Nullable java.lang.String p_authorization)
-
-