Class TokenService


  • @Named
    public class TokenService
    extends Object
    Token specific service methods
    Author:
    Yuriy Movchan Date: 10/03/2012
    • Constructor Detail

      • TokenService

        public TokenService()
    • 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)
      • 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)
      • getClientDn

        @NotNull
        public @NotNull String getClientDn​(@Nullable
                                           @Nullable String authorization)