Class JwtAuthorizationRequest
- java.lang.Object
-
- io.jans.as.client.model.authorize.JwtAuthorizationRequest
-
public class JwtAuthorizationRequest extends java.lang.Object
- Version:
- November 23, 2021
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description 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(AuthorizationRequest authorizationRequest, io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm, io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm, java.lang.String sharedKey)
JwtAuthorizationRequest(AuthorizationRequest authorizationRequest, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
JwtAuthorizationRequest(AuthorizationRequest authorizationRequest, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, java.lang.String sharedKey, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdTokenClaim(Claim claim)
void
addUserInfoClaim(Claim claim)
java.util.List<java.lang.String>
getAcrValues()
java.lang.String
getAud()
java.lang.String
getBindingMessage()
io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm
getBlockEncryptionAlgorithm()
java.util.List<java.lang.String>
getClaimsLocales()
java.lang.String
getClientId()
java.lang.String
getClientNotificationToken()
java.lang.String
getDecodedJwt()
io.jans.as.model.common.Display
getDisplay()
java.lang.String
getEncodedJwt()
java.lang.String
getEncodedJwt(org.json.JSONObject jwks)
java.lang.Integer
getExp()
java.lang.Integer
getIat()
java.lang.String
getIdTokenHint()
IdTokenMember
getIdTokenMember()
java.lang.String
getIss()
java.lang.String
getJti()
io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm
getKeyEncryptionAlgorithm()
java.lang.String
getKeyId()
java.lang.String
getLoginHint()
java.lang.String
getLoginHintToken()
java.lang.Integer
getMaxAge()
java.lang.Integer
getNbf()
io.jans.as.model.jwt.Jwt
getNestedPayload()
java.lang.String
getNonce()
java.util.List<io.jans.as.model.common.Prompt>
getPrompts()
java.lang.String
getRedirectUri()
java.lang.String
getRegistration()
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()
io.jans.as.model.crypto.signature.SignatureAlgorithm
getSignatureAlgorithm()
java.lang.String
getState()
io.jans.as.model.jwt.JwtType
getType()
java.util.List<java.lang.String>
getUiLocales()
java.lang.String
getUserCode()
UserInfoMember
getUserInfoMember()
protected org.json.JSONObject
headerToJSONObject()
boolean
isRequestUniqueId()
protected org.json.JSONObject
payloadToJSONObject()
void
setAcrValues(java.util.List<java.lang.String> acrValues)
void
setAlgorithm(io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm)
void
setAud(java.lang.String aud)
void
setBindingMessage(java.lang.String bindingMessage)
void
setBlockEncryptionAlgorithm(io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm)
void
setClaimsLocales(java.util.List<java.lang.String> claimsLocales)
void
setClientId(java.lang.String clientId)
void
setClientNotificationToken(java.lang.String clientNotificationToken)
void
setDisplay(io.jans.as.model.common.Display display)
void
setExp(java.lang.Integer exp)
void
setIat(java.lang.Integer iat)
void
setIdTokenHint(java.lang.String idTokenHint)
void
setIdTokenMember(IdTokenMember idTokenMember)
void
setIss(java.lang.String iss)
void
setJti(java.lang.String jti)
void
setKeyEncryptionAlgorithm(io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm)
void
setKeyId(java.lang.String keyId)
void
setLoginHint(java.lang.String loginHint)
void
setLoginHintToken(java.lang.String loginHintToken)
void
setMaxAge(java.lang.Integer maxAge)
void
setNbf(java.lang.Integer nbf)
void
setNestedPayload(io.jans.as.model.jwt.Jwt nestedPayload)
void
setNonce(java.lang.String nonce)
void
setPrompts(java.util.List<io.jans.as.model.common.Prompt> prompts)
void
setRedirectUri(java.lang.String redirectUri)
void
setRegistration(java.lang.String registration)
void
setRequestedExpiry(java.lang.Integer requestedExpiry)
void
setRequestUniqueId(boolean p_requestUniqueId)
void
setResponseMode(io.jans.as.model.common.ResponseMode responseMode)
void
setResponseTypes(java.util.List<io.jans.as.model.common.ResponseType> responseTypes)
void
setScopes(java.util.List<java.lang.String> scopes)
void
setState(java.lang.String state)
void
setType(io.jans.as.model.jwt.JwtType type)
void
setUiLocales(java.util.List<java.lang.String> uiLocales)
void
setUserCode(java.lang.String userCode)
void
setUserInfoMember(UserInfoMember userInfoMember)
-
-
-
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)
-
getUserInfoMember
public UserInfoMember getUserInfoMember()
-
setUserInfoMember
public void setUserInfoMember(UserInfoMember userInfoMember)
-
getIdTokenMember
public IdTokenMember getIdTokenMember()
-
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
-
-