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