Class JwtAuthorizationRequest


  • public class JwtAuthorizationRequest
    extends Object
    Version:
    December 15, 2021
    Author:
    Javier Rojas Blum
    • Constructor Detail

      • JwtAuthorizationRequest

        public JwtAuthorizationRequest​(io.jans.as.model.configuration.AppConfiguration appConfiguration,
                                       io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider,
                                       String encodedJwt,
                                       io.jans.as.common.model.registration.Client client)
                                throws io.jans.as.model.exception.InvalidJwtException
        Throws:
        io.jans.as.model.exception.InvalidJwtException
    • Method Detail

      • getEncodedJwt

        public String getEncodedJwt()
      • getJsonPayload

        public org.json.JSONObject getJsonPayload()
      • getNestedJwt

        public io.jans.as.model.jwt.Jwt getNestedJwt()
      • getEncryptionAlgorithm

        public String getEncryptionAlgorithm()
      • getKeyId

        public String getKeyId()
      • getType

        public String getType()
      • getAlgorithm

        public String getAlgorithm()
      • getResponseTypes

        public List<io.jans.as.model.common.ResponseType> getResponseTypes()
      • getClientId

        public String getClientId()
      • getRedirectUri

        public String getRedirectUri()
      • getNonce

        public String getNonce()
      • getState

        public String getState()
      • getDisplay

        public io.jans.as.model.common.Display getDisplay()
      • getPrompts

        public List<io.jans.as.model.common.Prompt> getPrompts()
      • getPayload

        public String getPayload()
      • getIss

        public String getIss()
      • getJti

        public String getJti()
      • getClientNotificationToken

        public String getClientNotificationToken()
      • getAcrValues

        public String getAcrValues()
      • getLoginHintToken

        public String getLoginHintToken()
      • getIdTokenHint

        public String getIdTokenHint()
      • getLoginHint

        public String getLoginHint()
      • getBindingMessage

        public String getBindingMessage()
      • getUserCode

        public String getUserCode()
      • getRequestedExpiry

        public Integer getRequestedExpiry()
      • getResponseMode

        public io.jans.as.model.common.ResponseMode getResponseMode()
      • getCodeChallenge

        public String getCodeChallenge()
      • getCodeChallengeMethod

        public String getCodeChallengeMethod()
      • getDpopJkt

        public String getDpopJkt()
      • setDpopJkt

        public void setDpopJkt​(String dpopJkt)
      • createJwtRequest

        public static JwtAuthorizationRequest createJwtRequest​(String request,
                                                               String requestUri,
                                                               io.jans.as.common.model.registration.Client client,
                                                               RedirectUriResponse redirectUriResponse,
                                                               io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider,
                                                               io.jans.as.model.configuration.AppConfiguration appConfiguration)
      • validate

        public void validate()
                      throws io.jans.as.model.exception.InvalidJwtException
        Throws:
        io.jans.as.model.exception.InvalidJwtException
      • validateExp

        public static void validateExp​(Integer exp)
                                throws io.jans.as.model.exception.InvalidJwtException
        Throws:
        io.jans.as.model.exception.InvalidJwtException
      • validateNbf

        public static void validateNbf​(Integer nbf)
                                throws io.jans.as.model.exception.InvalidJwtException
        Throws:
        io.jans.as.model.exception.InvalidJwtException
      • validateRequestUri

        public static void validateRequestUri​(String requestUri,
                                              io.jans.as.common.model.registration.Client client,
                                              io.jans.as.model.configuration.AppConfiguration appConfiguration,
                                              String state)
      • validateRequestUri

        public static void validateRequestUri​(String requestUri,
                                              io.jans.as.common.model.registration.Client client,
                                              io.jans.as.model.configuration.AppConfiguration appConfiguration,
                                              String state,
                                              io.jans.as.model.error.ErrorResponseFactory errorResponseFactory)