Class AuthorizeParamsValidator


  • public class AuthorizeParamsValidator
    extends java.lang.Object
    Validates the parameters received for the authorize web service.
    Version:
    October 6, 2021
    Author:
    Javier Rojas Blum
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean noNonePrompt​(java.util.List<io.jans.as.model.common.Prompt> prompts)  
      static boolean validateGrantType​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes, io.jans.as.model.common.GrantType[] clientGrantTypesArray, io.jans.as.model.configuration.AppConfiguration appConfiguration)  
      static boolean validateParams​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes, java.util.List<io.jans.as.model.common.Prompt> prompts, java.lang.String nonce, boolean fapiCompatibility, io.jans.as.model.common.ResponseMode responseMode)
      Validates the parameters for an authorization request.
      static boolean validateResponseTypes​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes, io.jans.as.common.model.registration.Client client)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorizeParamsValidator

        public AuthorizeParamsValidator()
    • Method Detail

      • validateParams

        public static boolean validateParams​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes,
                                             java.util.List<io.jans.as.model.common.Prompt> prompts,
                                             java.lang.String nonce,
                                             boolean fapiCompatibility,
                                             io.jans.as.model.common.ResponseMode responseMode)
        Validates the parameters for an authorization request.
        Parameters:
        responseTypes - The response types. This parameter is mandatory.
        Returns:
        Returns true when all the parameters are valid.
      • noNonePrompt

        public static boolean noNonePrompt​(java.util.List<io.jans.as.model.common.Prompt> prompts)
      • validateResponseTypes

        public static boolean validateResponseTypes​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes,
                                                    io.jans.as.common.model.registration.Client client)
      • validateGrantType

        public static boolean validateGrantType​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes,
                                                io.jans.as.model.common.GrantType[] clientGrantTypesArray,
                                                io.jans.as.model.configuration.AppConfiguration appConfiguration)