Class TokenCreatorService


  • @Named
    public class TokenCreatorService
    extends java.lang.Object
    Author:
    Yuriy Z
    • Constructor Detail

      • TokenCreatorService

        public TokenCreatorService()
    • Method Detail

      • isRefreshTokenAllowed

        public boolean isRefreshTokenAllowed​(io.jans.as.common.model.registration.Client client,
                                             java.lang.String requestedScope,
                                             AbstractAuthorizationGrant grant)
      • createRefreshToken

        @Nullable
        public @Nullable RefreshToken createRefreshToken​(@NotNull
                                                         @NotNull ExecutionContext executionContext,
                                                         @NotNull
                                                         @NotNull java.lang.String scope)
      • error

        public jakarta.ws.rs.core.Response.ResponseBuilder error​(int status,
                                                                 io.jans.as.model.token.TokenErrorResponseType type,
                                                                 java.lang.String reason)