Class TokenRestWebServiceValidator


  • @Named
    public class TokenRestWebServiceValidator
    extends Object
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • TokenRestWebServiceValidator

        public TokenRestWebServiceValidator()
    • Method Detail

      • validateParams

        public static boolean validateParams​(String clientId,
                                             String clientSecret)
      • validateGrantType

        public void validateGrantType​(io.jans.as.model.common.GrantType requestedGrantType,
                                      io.jans.as.common.model.registration.Client client,
                                      OAuth2AuditLog auditLog)
      • error

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

        @NotNull
        public @NotNull io.jans.as.common.model.registration.Client validateClient​(io.jans.as.common.model.registration.Client client,
                                                                                   OAuth2AuditLog auditLog)
      • validateUser

        public void validateUser​(io.jans.as.common.model.common.User user,
                                 OAuth2AuditLog auditLog)
      • validateSubjectTokenType

        public void validateSubjectTokenType​(String subjectTokenType,
                                             OAuth2AuditLog auditLog)
      • validateActorTokenType

        public void validateActorTokenType​(String actorTokenType,
                                           OAuth2AuditLog auditLog)
      • validateActorToken

        public void validateActorToken​(String actorToken,
                                       OAuth2AuditLog auditLog)
      • validateSessionForTokenExchange

        public void validateSessionForTokenExchange​(io.jans.as.common.model.session.SessionId session,
                                                    String actorToken,
                                                    OAuth2AuditLog auditLog)
      • validateSubjectToken

        public void validateSubjectToken​(String deviceSecret,
                                         String subjectToken,
                                         io.jans.as.common.model.session.SessionId sidSession,
                                         OAuth2AuditLog auditLog)