Class JwtAuthorizationRequest
- java.lang.Object
-
- io.jans.as.server.model.authorize.JwtAuthorizationRequest
-
public class JwtAuthorizationRequest extends 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, 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(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)
String
getAcrValues()
String
getAlgorithm()
List<String>
getAud()
String
getBindingMessage()
String
getClientId()
String
getClientNotificationToken()
String
getCodeChallenge()
String
getCodeChallengeMethod()
io.jans.as.model.common.Display
getDisplay()
String
getEncodedJwt()
String
getEncryptionAlgorithm()
Integer
getExp()
Integer
getIat()
String
getIdTokenHint()
IdTokenMember
getIdTokenMember()
String
getIss()
org.json.JSONObject
getJsonPayload()
String
getJti()
String
getKeyId()
String
getLoginHint()
String
getLoginHintToken()
Integer
getNbf()
io.jans.as.model.jwt.Jwt
getNestedJwt()
String
getNonce()
String
getPayload()
List<io.jans.as.model.common.Prompt>
getPrompts()
String
getRedirectUri()
Integer
getRequestedExpiry()
io.jans.as.model.common.ResponseMode
getResponseMode()
List<io.jans.as.model.common.ResponseType>
getResponseTypes()
List<String>
getScopes()
String
getState()
String
getType()
String
getUserCode()
UserInfoMember
getUserInfoMember()
void
validate()
static void
validateExp(Integer exp)
static void
validateNbf(Integer nbf)
static void
validateRequestUri(String requestUri, io.jans.as.common.model.registration.Client client, io.jans.as.model.configuration.AppConfiguration appConfiguration, String state)
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)
-
-
-
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()
-
getUserInfoMember
public UserInfoMember getUserInfoMember()
-
getIdTokenMember
public IdTokenMember getIdTokenMember()
-
getExp
public Integer getExp()
-
getPayload
public String getPayload()
-
getIss
public String getIss()
-
getIat
public Integer getIat()
-
getNbf
public Integer getNbf()
-
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()
-
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)
-
-