Class TokenRestWebServiceValidator


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

      • TokenRestWebServiceValidator

        public TokenRestWebServiceValidator()
    • Method Detail

      • validateParams

        public void validateParams​(java.lang.String grantType,
                                   java.lang.String code,
                                   java.lang.String redirectUri,
                                   java.lang.String refreshToken,
                                   OAuth2AuditLog auditLog)
      • validateParams

        public static boolean validateParams​(java.lang.String clientId,
                                             java.lang.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,
                                                                 java.lang.String reason)
      • validateClient

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

        public void validateDeviceAuthorization​(io.jans.as.common.model.registration.Client client,
                                                java.lang.String deviceCode,
                                                DeviceAuthorizationCacheControl cacheData,
                                                OAuth2AuditLog oAuth2AuditLog)
      • validateGrant

        public void validateGrant​(AuthorizationGrant grant,
                                  io.jans.as.common.model.registration.Client client,
                                  java.lang.Object identifier,
                                  OAuth2AuditLog auditLog)
      • validateUser

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

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

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

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

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

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

        public void validateAudience​(java.lang.String audience,
                                     OAuth2AuditLog auditLog)