Package io.jans.as.server.service.token
Class TokenService
- java.lang.Object
-
- io.jans.as.server.service.token.TokenService
-
@Named public class TokenService extends 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 String
extractToken(@Nullable String authorizationParameter, @NotNull HttpAuthTokenType tokenType)
@Nullable AuthorizationGrant
getAuthorizationGrant(@Nullable String authorization)
@Nullable AuthorizationGrant
getAuthorizationGrant(@Nullable String authorization, @Nullable HttpAuthTokenType tokenType)
@Nullable AuthorizationGrant
getBasicAuthorizationGrant(@Nullable String authorization)
@Nullable String
getBasicToken(@Nullable String authorizationParameter)
@Nullable AuthorizationGrant
getBearerAuthorizationGrant(@Nullable String authorization)
@Nullable String
getBearerToken(@Nullable String authorizationParameter)
@NotNull String
getClientDn(@Nullable String authorization)
@Nullable String
getToken(@Nullable String authorization)
@Nullable String
getToken(@Nullable String authorization, @Nullable HttpAuthTokenType... allowedTokenTypes)
boolean
isBasicAuthToken(@Nullable String authorizationParameter)
boolean
isBearerAuthToken(@Nullable String authorizationParameter)
boolean
isNegotiateAuthToken(@Nullable String authorizationParameter)
boolean
isToken(@Nullable String authorizationParameter, @NotNull HttpAuthTokenType tokenType)
-
-
-
Method Detail
-
isToken
public boolean isToken(@Nullable @Nullable String authorizationParameter, @NotNull @NotNull HttpAuthTokenType tokenType)
-
extractToken
@Nullable public @Nullable String extractToken(@Nullable @Nullable String authorizationParameter, @NotNull @NotNull HttpAuthTokenType tokenType)
-
isBasicAuthToken
public boolean isBasicAuthToken(@Nullable @Nullable String authorizationParameter)
-
isBearerAuthToken
public boolean isBearerAuthToken(@Nullable @Nullable String authorizationParameter)
-
isNegotiateAuthToken
public boolean isNegotiateAuthToken(@Nullable @Nullable String authorizationParameter)
-
getBasicToken
@Nullable public @Nullable String getBasicToken(@Nullable @Nullable String authorizationParameter)
-
getBearerToken
@Nullable public @Nullable String getBearerToken(@Nullable @Nullable String authorizationParameter)
-
getToken
@Nullable public @Nullable String getToken(@Nullable @Nullable String authorization, @Nullable @Nullable HttpAuthTokenType... allowedTokenTypes)
-
getAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getAuthorizationGrant(@Nullable @Nullable String authorization)
-
getBearerAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getBearerAuthorizationGrant(@Nullable @Nullable String authorization)
-
getBasicAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getBasicAuthorizationGrant(@Nullable @Nullable String authorization)
-
getAuthorizationGrant
@Nullable public @Nullable AuthorizationGrant getAuthorizationGrant(@Nullable @Nullable String authorization, @Nullable @Nullable HttpAuthTokenType tokenType)
-
-