Class JwtAuthorizationRequest
- java.lang.Object
-
- io.jans.as.server.model.authorize.JwtAuthorizationRequest
-
public class JwtAuthorizationRequest extends java.lang.Object
- Version:
- December 15, 2021
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description JwtAuthorizationRequest(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider, java.lang.String encodedJwt, io.jans.as.common.model.registration.Client client)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JwtAuthorizationRequest
createJwtRequest(java.lang.String request, java.lang.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)
java.lang.String
getAcrValues()
java.lang.String
getAlgorithm()
java.util.List<java.lang.String>
getAud()
java.lang.String
getBindingMessage()
java.lang.String
getClientId()
java.lang.String
getClientNotificationToken()
java.lang.String
getCodeChallenge()
java.lang.String
getCodeChallengeMethod()
io.jans.as.model.common.Display
getDisplay()
java.lang.String
getEncodedJwt()
java.lang.String
getEncryptionAlgorithm()
java.lang.Integer
getExp()
java.lang.Integer
getIat()
java.lang.String
getIdTokenHint()
IdTokenMember
getIdTokenMember()
java.lang.String
getIss()
org.json.JSONObject
getJsonPayload()
java.lang.String
getJti()
java.lang.String
getKeyId()
java.lang.String
getLoginHint()
java.lang.String
getLoginHintToken()
java.lang.Integer
getNbf()
io.jans.as.model.jwt.Jwt
getNestedJwt()
java.lang.String
getNonce()
java.lang.String
getPayload()
java.util.List<io.jans.as.model.common.Prompt>
getPrompts()
java.lang.String
getRedirectUri()
java.lang.Integer
getRequestedExpiry()
io.jans.as.model.common.ResponseMode
getResponseMode()
java.util.List<io.jans.as.model.common.ResponseType>
getResponseTypes()
java.util.List<java.lang.String>
getScopes()
java.lang.String
getState()
java.lang.String
getType()
java.lang.String
getUserCode()
UserInfoMember
getUserInfoMember()
void
validate()
static void
validateExp(java.lang.Integer exp)
static void
validateNbf(java.lang.Integer nbf)
static void
validateRequestUri(java.lang.String requestUri, io.jans.as.common.model.registration.Client client, io.jans.as.model.configuration.AppConfiguration appConfiguration, java.lang.String state)
static void
validateRequestUri(java.lang.String requestUri, io.jans.as.common.model.registration.Client client, io.jans.as.model.configuration.AppConfiguration appConfiguration, java.lang.String state, io.jans.as.model.error.ErrorResponseFactory errorResponseFactory)
-
-
-
Constructor Detail
-
JwtAuthorizationRequest
public JwtAuthorizationRequest(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider, java.lang.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 java.lang.String getEncodedJwt()
-
getJsonPayload
public org.json.JSONObject getJsonPayload()
-
getNestedJwt
public io.jans.as.model.jwt.Jwt getNestedJwt()
-
getEncryptionAlgorithm
public java.lang.String getEncryptionAlgorithm()
-
getKeyId
public java.lang.String getKeyId()
-
getType
public java.lang.String getType()
-
getAlgorithm
public java.lang.String getAlgorithm()
-
getResponseTypes
public java.util.List<io.jans.as.model.common.ResponseType> getResponseTypes()
-
getClientId
public java.lang.String getClientId()
-
getScopes
public java.util.List<java.lang.String> getScopes()
-
getRedirectUri
public java.lang.String getRedirectUri()
-
getNonce
public java.lang.String getNonce()
-
getState
public java.lang.String getState()
-
getDisplay
public io.jans.as.model.common.Display getDisplay()
-
getPrompts
public java.util.List<io.jans.as.model.common.Prompt> getPrompts()
-
getUserInfoMember
public UserInfoMember getUserInfoMember()
-
getIdTokenMember
public IdTokenMember getIdTokenMember()
-
getExp
public java.lang.Integer getExp()
-
getAud
public java.util.List<java.lang.String> getAud()
-
getPayload
public java.lang.String getPayload()
-
getIss
public java.lang.String getIss()
-
getIat
public java.lang.Integer getIat()
-
getNbf
public java.lang.Integer getNbf()
-
getJti
public java.lang.String getJti()
-
getClientNotificationToken
public java.lang.String getClientNotificationToken()
-
getAcrValues
public java.lang.String getAcrValues()
-
getLoginHintToken
public java.lang.String getLoginHintToken()
-
getIdTokenHint
public java.lang.String getIdTokenHint()
-
getLoginHint
public java.lang.String getLoginHint()
-
getBindingMessage
public java.lang.String getBindingMessage()
-
getUserCode
public java.lang.String getUserCode()
-
getRequestedExpiry
public java.lang.Integer getRequestedExpiry()
-
getResponseMode
public io.jans.as.model.common.ResponseMode getResponseMode()
-
getCodeChallenge
public java.lang.String getCodeChallenge()
-
getCodeChallengeMethod
public java.lang.String getCodeChallengeMethod()
-
createJwtRequest
public static JwtAuthorizationRequest createJwtRequest(java.lang.String request, java.lang.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(java.lang.Integer exp) throws io.jans.as.model.exception.InvalidJwtException
- Throws:
io.jans.as.model.exception.InvalidJwtException
-
validateNbf
public static void validateNbf(java.lang.Integer nbf) throws io.jans.as.model.exception.InvalidJwtException
- Throws:
io.jans.as.model.exception.InvalidJwtException
-
validateRequestUri
public static void validateRequestUri(java.lang.String requestUri, io.jans.as.common.model.registration.Client client, io.jans.as.model.configuration.AppConfiguration appConfiguration, java.lang.String state)
-
validateRequestUri
public static void validateRequestUri(java.lang.String requestUri, io.jans.as.common.model.registration.Client client, io.jans.as.model.configuration.AppConfiguration appConfiguration, java.lang.String state, io.jans.as.model.error.ErrorResponseFactory errorResponseFactory)
-
-