Class JwtAuthorizationRequest


  • public class JwtAuthorizationRequest
    extends java.lang.Object
    Version:
    November 23, 2021
    Author:
    Javier Rojas Blum
    • Constructor Detail

      • JwtAuthorizationRequest

        public JwtAuthorizationRequest​(AuthorizationRequest authorizationRequest,
                                       io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm,
                                       io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
      • JwtAuthorizationRequest

        public JwtAuthorizationRequest​(AuthorizationRequest authorizationRequest,
                                       io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm,
                                       java.lang.String sharedKey,
                                       io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
      • JwtAuthorizationRequest

        public JwtAuthorizationRequest​(AuthorizationRequest authorizationRequest,
                                       io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm,
                                       io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm,
                                       io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
      • JwtAuthorizationRequest

        public JwtAuthorizationRequest​(AuthorizationRequest authorizationRequest,
                                       io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm,
                                       io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm,
                                       java.lang.String sharedKey)
    • Method Detail

      • getType

        public io.jans.as.model.jwt.JwtType getType()
      • setType

        public void setType​(io.jans.as.model.jwt.JwtType type)
      • getSignatureAlgorithm

        public io.jans.as.model.crypto.signature.SignatureAlgorithm getSignatureAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm)
      • getKeyEncryptionAlgorithm

        public io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm getKeyEncryptionAlgorithm()
      • setKeyEncryptionAlgorithm

        public void setKeyEncryptionAlgorithm​(io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm)
      • getBlockEncryptionAlgorithm

        public io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm getBlockEncryptionAlgorithm()
      • setBlockEncryptionAlgorithm

        public void setBlockEncryptionAlgorithm​(io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm)
      • getKeyId

        public java.lang.String getKeyId()
      • setKeyId

        public void setKeyId​(java.lang.String keyId)
      • isRequestUniqueId

        public boolean isRequestUniqueId()
      • setRequestUniqueId

        public void setRequestUniqueId​(boolean p_requestUniqueId)
      • getResponseTypes

        public java.util.List<io.jans.as.model.common.ResponseType> getResponseTypes()
      • setResponseTypes

        public void setResponseTypes​(java.util.List<io.jans.as.model.common.ResponseType> responseTypes)
      • getResponseMode

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

        public void setResponseMode​(io.jans.as.model.common.ResponseMode responseMode)
      • getClientId

        public java.lang.String getClientId()
      • setClientId

        public void setClientId​(java.lang.String clientId)
      • getScopes

        public java.util.List<java.lang.String> getScopes()
      • setScopes

        public void setScopes​(java.util.List<java.lang.String> scopes)
      • getRedirectUri

        public java.lang.String getRedirectUri()
      • setRedirectUri

        public void setRedirectUri​(java.lang.String redirectUri)
      • getState

        public java.lang.String getState()
      • setState

        public void setState​(java.lang.String state)
      • getNonce

        public java.lang.String getNonce()
      • setNonce

        public void setNonce​(java.lang.String nonce)
      • getDisplay

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

        public void setDisplay​(io.jans.as.model.common.Display display)
      • getPrompts

        public java.util.List<io.jans.as.model.common.Prompt> getPrompts()
      • setPrompts

        public void setPrompts​(java.util.List<io.jans.as.model.common.Prompt> prompts)
      • getMaxAge

        public java.lang.Integer getMaxAge()
      • setMaxAge

        public void setMaxAge​(java.lang.Integer maxAge)
      • getUiLocales

        public java.util.List<java.lang.String> getUiLocales()
      • setUiLocales

        public void setUiLocales​(java.util.List<java.lang.String> uiLocales)
      • getClaimsLocales

        public java.util.List<java.lang.String> getClaimsLocales()
      • setClaimsLocales

        public void setClaimsLocales​(java.util.List<java.lang.String> claimsLocales)
      • getIdTokenHint

        public java.lang.String getIdTokenHint()
      • setIdTokenHint

        public void setIdTokenHint​(java.lang.String idTokenHint)
      • getLoginHint

        public java.lang.String getLoginHint()
      • setLoginHint

        public void setLoginHint​(java.lang.String loginHint)
      • getAcrValues

        public java.util.List<java.lang.String> getAcrValues()
      • setAcrValues

        public void setAcrValues​(java.util.List<java.lang.String> acrValues)
      • getRegistration

        public java.lang.String getRegistration()
      • setRegistration

        public void setRegistration​(java.lang.String registration)
      • setUserInfoMember

        public void setUserInfoMember​(UserInfoMember userInfoMember)
      • setIdTokenMember

        public void setIdTokenMember​(IdTokenMember idTokenMember)
      • getNestedPayload

        public io.jans.as.model.jwt.Jwt getNestedPayload()
      • setNestedPayload

        public void setNestedPayload​(io.jans.as.model.jwt.Jwt nestedPayload)
      • addUserInfoClaim

        public void addUserInfoClaim​(Claim claim)
      • addIdTokenClaim

        public void addIdTokenClaim​(Claim claim)
      • getAud

        public java.lang.String getAud()
      • setAud

        public void setAud​(java.lang.String aud)
      • getExp

        public java.lang.Integer getExp()
      • setExp

        public void setExp​(java.lang.Integer exp)
      • getIss

        public java.lang.String getIss()
      • setIss

        public void setIss​(java.lang.String iss)
      • getIat

        public java.lang.Integer getIat()
      • setIat

        public void setIat​(java.lang.Integer iat)
      • getNbf

        public java.lang.Integer getNbf()
      • setNbf

        public void setNbf​(java.lang.Integer nbf)
      • getJti

        public java.lang.String getJti()
      • setJti

        public void setJti​(java.lang.String jti)
      • getClientNotificationToken

        public java.lang.String getClientNotificationToken()
      • setClientNotificationToken

        public void setClientNotificationToken​(java.lang.String clientNotificationToken)
      • getLoginHintToken

        public java.lang.String getLoginHintToken()
      • setLoginHintToken

        public void setLoginHintToken​(java.lang.String loginHintToken)
      • getBindingMessage

        public java.lang.String getBindingMessage()
      • setBindingMessage

        public void setBindingMessage​(java.lang.String bindingMessage)
      • getUserCode

        public java.lang.String getUserCode()
      • setUserCode

        public void setUserCode​(java.lang.String userCode)
      • getRequestedExpiry

        public java.lang.Integer getRequestedExpiry()
      • setRequestedExpiry

        public void setRequestedExpiry​(java.lang.Integer requestedExpiry)
      • getEncodedJwt

        public java.lang.String getEncodedJwt​(org.json.JSONObject jwks)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getEncodedJwt

        public java.lang.String getEncodedJwt()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDecodedJwt

        public java.lang.String getDecodedJwt()
      • headerToJSONObject

        protected org.json.JSONObject headerToJSONObject()
                                                  throws io.jans.as.model.exception.InvalidJwtException
        Throws:
        io.jans.as.model.exception.InvalidJwtException
      • payloadToJSONObject

        protected org.json.JSONObject payloadToJSONObject()
                                                   throws org.json.JSONException
        Throws:
        org.json.JSONException