gluu
公開メンバ関数 | 限定公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.xdi.oxauth.client.model.JwtState クラス
org.xdi.oxauth.client.model.JwtState 連携図
Collaboration graph

公開メンバ関数

 JwtState (SignatureAlgorithm signatureAlgorithm, AbstractCryptoProvider cryptoProvider)
 
 JwtState (SignatureAlgorithm signatureAlgorithm, String sharedKey, AbstractCryptoProvider cryptoProvider)
 
 JwtState (KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, AbstractCryptoProvider cryptoProvider)
 
 JwtState (KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, String sharedKey)
 
JwtType getType ()
 
void setType (JwtType type)
 
SignatureAlgorithm getSignatureAlgorithm ()
 
void setSignatureAlgorithm (SignatureAlgorithm signatureAlgorithm)
 
KeyEncryptionAlgorithm getKeyEncryptionAlgorithm ()
 
void setKeyEncryptionAlgorithm (KeyEncryptionAlgorithm keyEncryptionAlgorithm)
 
BlockEncryptionAlgorithm getBlockEncryptionAlgorithm ()
 
void setBlockEncryptionAlgorithm (BlockEncryptionAlgorithm blockEncryptionAlgorithm)
 
String getKeyId ()
 
void setKeyId (String keyId)
 
String getRfp ()
 
void setRfp (String rfp)
 
String getIat ()
 
void setIat (String iat)
 
String getExp ()
 
void setExp (String exp)
 
String getIss ()
 
void setIss (String iss)
 
String getAud ()
 
void setAud (String aud)
 
String getTargetLinkUri ()
 
void setTargetLinkUri (String targetLinkUri)
 
String getAs ()
 
void setAs (String as)
 
String getJti ()
 
void setJti (String jti)
 
String getAtHash ()
 
void setAtHash (String atHash)
 
String getcHash ()
 
void setcHash (String cHash)
 
JSONObject getAdditionalClaims ()
 
void setAdditionalClaims (JSONObject additionalClaims)
 
String getEncodedJwt (JSONObject jwks) throws Exception
 
String getEncodedJwt () throws Exception
 

限定公開メンバ関数

JSONObject headerToJSONObject () throws InvalidJwtException
 
JSONObject payloadToJSONObject () throws JSONException
 

非公開メンバ関数

 JwtState (SignatureAlgorithm signatureAlgorithm, AbstractCryptoProvider cryptoProvider, KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, String sharedKey)
 

非公開変数類

JwtType type
 
SignatureAlgorithm signatureAlgorithm
 
KeyEncryptionAlgorithm keyEncryptionAlgorithm
 
BlockEncryptionAlgorithm blockEncryptionAlgorithm
 
String keyId
 
String rfp
 
String iat
 
String exp
 
String iss
 
String aud
 
String targetLinkUri
 
String as
 
String jti
 
String atHash
 
String cHash
 
JSONObject additionalClaims
 
String sharedKey
 
AbstractCryptoProvider cryptoProvider
 

静的非公開変数類

static final Logger LOG = Logger.getLogger(JwtState.class)
 

詳解

著者
Javier Rojas Blum
バージョン
May 3, 2017

構築子と解体子

◆ JwtState() [1/5]

org.xdi.oxauth.client.model.JwtState.JwtState ( SignatureAlgorithm  signatureAlgorithm,
AbstractCryptoProvider  cryptoProvider 
)
inline
64  {
65  this(signatureAlgorithm, cryptoProvider, null, null, null);
66  }
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42
AbstractCryptoProvider cryptoProvider
Definition: JwtState.java:62

◆ JwtState() [2/5]

org.xdi.oxauth.client.model.JwtState.JwtState ( SignatureAlgorithm  signatureAlgorithm,
String  sharedKey,
AbstractCryptoProvider  cryptoProvider 
)
inline
69  {
70  this(signatureAlgorithm, cryptoProvider, null, null, sharedKey);
71  }
String sharedKey
Definition: JwtState.java:61
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42
AbstractCryptoProvider cryptoProvider
Definition: JwtState.java:62

◆ JwtState() [3/5]

org.xdi.oxauth.client.model.JwtState.JwtState ( KeyEncryptionAlgorithm  keyEncryptionAlgorithm,
BlockEncryptionAlgorithm  blockEncryptionAlgorithm,
AbstractCryptoProvider  cryptoProvider 
)
inline
74  {
76  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44
AbstractCryptoProvider cryptoProvider
Definition: JwtState.java:62

◆ JwtState() [4/5]

org.xdi.oxauth.client.model.JwtState.JwtState ( KeyEncryptionAlgorithm  keyEncryptionAlgorithm,
BlockEncryptionAlgorithm  blockEncryptionAlgorithm,
String  sharedKey 
)
inline
79  {
81  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43
String sharedKey
Definition: JwtState.java:61
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44

◆ JwtState() [5/5]

org.xdi.oxauth.client.model.JwtState.JwtState ( SignatureAlgorithm  signatureAlgorithm,
AbstractCryptoProvider  cryptoProvider,
KeyEncryptionAlgorithm  keyEncryptionAlgorithm,
BlockEncryptionAlgorithm  blockEncryptionAlgorithm,
String  sharedKey 
)
inlineprivate
85  {
86  this.type = JwtType.JWT;
91  this.sharedKey = sharedKey;
92  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43
JwtType type
Definition: JwtState.java:41
String sharedKey
Definition: JwtState.java:61
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42
Definition: JwtType.java:15
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44
AbstractCryptoProvider cryptoProvider
Definition: JwtState.java:62

関数詳解

◆ getAdditionalClaims()

JSONObject org.xdi.oxauth.client.model.JwtState.getAdditionalClaims ( )
inline
388  {
389  return additionalClaims;
390  }
JSONObject additionalClaims
Definition: JwtState.java:58

◆ getAs()

String org.xdi.oxauth.client.model.JwtState.getAs ( )
inline

String identifying the authorization server that this request was sent to.

戻り値
The authorization server
279  {
280  return as;
281  }
String as
Definition: JwtState.java:54

◆ getAtHash()

String org.xdi.oxauth.client.model.JwtState.getAtHash ( )
inline

Access Token hash value. Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII representation of the "access_token" value, where the hash algorithm used is the hash algorithm used in the "alg" parameter of the State Token's JWS header. For instance, if the "alg" is "RS256", hash the "access_token" value with SHA-256, then take the left-most 128 bits and base64url encode them. The "at_hash" value is a case sensitive string. This is REQUIRED if the JWT [RFC7519] state token is being produced by the AS and issued with a "access_token" in the authorization response.

戻り値
The access token hash value
333  {
334  return atHash;
335  }
String atHash
Definition: JwtState.java:56

◆ getAud()

String org.xdi.oxauth.client.model.JwtState.getAud ( )
inline

String identifying the client that this state value is intended for.

戻り値
The audience
243  {
244  return aud;
245  }
String aud
Definition: JwtState.java:52

◆ getBlockEncryptionAlgorithm()

BlockEncryptionAlgorithm org.xdi.oxauth.client.model.JwtState.getBlockEncryptionAlgorithm ( )
inline
118  {
120  }
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44

◆ getcHash()

String org.xdi.oxauth.client.model.JwtState.getcHash ( )
inline

Code hash value. Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII representation of the "code" value, where the hash algorithm used is the hash algorithm used in the "alg" header parameter of the State Token's JWS [RFC7515] header. For instance, if the "alg" is "HS512", hash the "code" value with SHA-512, then take the left-most 256 bits and base64url encode them. The "c_hash" value is a case sensitive string. This is REQUIRED if the JWT [RFC7519] state token is being produced by the AS and issued with a "code" in the authorization response.

戻り値
The code hash value
367  {
368  return cHash;
369  }
String cHash
Definition: JwtState.java:57

◆ getEncodedJwt() [1/2]

String org.xdi.oxauth.client.model.JwtState.getEncodedJwt ( JSONObject  jwks) throws Exception
inline
396  {
397  String encodedJwt = null;
398 
399  if (keyEncryptionAlgorithm != null && blockEncryptionAlgorithm != null) {
400  JweEncrypterImpl jweEncrypter;
401  if (cryptoProvider != null && jwks != null) {
402  PublicKey publicKey = cryptoProvider.getPublicKey(keyId, jwks);
403  jweEncrypter = new JweEncrypterImpl(keyEncryptionAlgorithm, blockEncryptionAlgorithm, publicKey);
404  } else {
405  jweEncrypter = new JweEncrypterImpl(keyEncryptionAlgorithm, blockEncryptionAlgorithm, sharedKey.getBytes(Util.UTF8_STRING_ENCODING));
406  }
407 
408  String header = headerToJSONObject().toString();
409  String encodedHeader = Base64Util.base64urlencode(header.getBytes(Util.UTF8_STRING_ENCODING));
410 
411  String claims = payloadToJSONObject().toString();
412  String encodedClaims = Base64Util.base64urlencode(claims.getBytes(Util.UTF8_STRING_ENCODING));
413 
414  byte[] contentMasterKey = new byte[blockEncryptionAlgorithm.getCmkLength() / 8];
415  SecureRandom random = new SecureRandom();
416  random.nextBytes(contentMasterKey);
417  String encodedEncryptedKey = jweEncrypter.generateEncryptedKey(contentMasterKey);
418 
419  byte[] initializationVector = new byte[blockEncryptionAlgorithm.getInitVectorLength() / 8];
420  random.nextBytes(initializationVector);
421  String encodedInitializationVector = Base64Util.base64urlencode(initializationVector);
422 
423  String additionalAuthenticatedData = encodedHeader + "."
424  + encodedEncryptedKey + "."
425  + encodedInitializationVector;
426 
427  Pair<String, String> result = jweEncrypter.generateCipherTextAndIntegrityValue(contentMasterKey, initializationVector,
428  additionalAuthenticatedData.getBytes(Util.UTF8_STRING_ENCODING),
429  encodedClaims.getBytes(Util.UTF8_STRING_ENCODING));
430  String encodedCipherText = result.getFirst();
431  String encodedIntegrityValue = result.getSecond();
432 
433  encodedJwt = encodedHeader + "."
434  + encodedEncryptedKey + "."
435  + encodedInitializationVector + "."
436  + encodedCipherText + "."
437  + encodedIntegrityValue;
438  } else {
439  if (cryptoProvider == null) {
440  throw new Exception("The Crypto Provider cannot be null.");
441  }
442 
443  JSONObject headerJsonObject = headerToJSONObject();
444  JSONObject payloadJsonObject = payloadToJSONObject();
445  String headerString = headerJsonObject.toString();
446  String payloadString = payloadJsonObject.toString();
447  String encodedHeader = Base64Util.base64urlencode(headerString.getBytes(Util.UTF8_STRING_ENCODING));
448  String encodedPayload = Base64Util.base64urlencode(payloadString.getBytes(Util.UTF8_STRING_ENCODING));
449  String signingInput = encodedHeader + "." + encodedPayload;
450  String encodedSignature = cryptoProvider.sign(signingInput, keyId, sharedKey, signatureAlgorithm);
451 
452  encodedJwt = encodedHeader + "." + encodedPayload + "." + encodedSignature;
453  }
454 
455  return encodedJwt;
456  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43
abstract String sign(String signingInput, String keyId, String sharedSecret, SignatureAlgorithm signatureAlgorithm)
JSONObject payloadToJSONObject()
Definition: JwtState.java:477
int getInitVectorLength()
Definition: BlockEncryptionAlgorithm.java:75
PublicKey getPublicKey(String alias, JSONObject jwks)
Definition: AbstractCryptoProvider.java:133
JSONObject headerToJSONObject()
Definition: JwtState.java:462
String sharedKey
Definition: JwtState.java:61
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42
int getCmkLength()
Definition: BlockEncryptionAlgorithm.java:71
String keyId
Definition: JwtState.java:45
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44
AbstractCryptoProvider cryptoProvider
Definition: JwtState.java:62

◆ getEncodedJwt() [2/2]

String org.xdi.oxauth.client.model.JwtState.getEncodedJwt ( ) throws Exception
inline
458  {
459  return getEncodedJwt(null);
460  }
String getEncodedJwt()
Definition: JwtState.java:458

◆ getExp()

String org.xdi.oxauth.client.model.JwtState.getExp ( )
inline

The expiration time claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing. The processing of the "exp" claim requires that the current date/time MUST be before the expiration date/time listed in the "exp" claim. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value MUST be a number containing an IntDate value.

戻り値
The expiration time value
201  {
202  return exp;
203  }
String exp
Definition: JwtState.java:50

◆ getIat()

String org.xdi.oxauth.client.model.JwtState.getIat ( )
inline

Timestamp of when this Authorization Request was issued.

戻り値
The Issued at value
177  {
178  return iat;
179  }
String iat
Definition: JwtState.java:49

◆ getIss()

String org.xdi.oxauth.client.model.JwtState.getIss ( )
inline

String identifying the party that issued this state value.

戻り値
The issuer value
225  {
226  return iss;
227  }
String iss
Definition: JwtState.java:51

◆ getJti()

String org.xdi.oxauth.client.model.JwtState.getJti ( )
inline

The "jti" (JWT ID) claim provides a unique identifier for the JWT. The identifier value MUST be assigned in a manner that ensures that there is a negligible probability that the same value will be accidentally assigned to a different data object. The "jti" claim can be used to prevent the JWT from being replayed. The "jti" value is a case-sensitive string.

戻り値
The JWT ID
302  {
303  return jti;
304  }
String jti
Definition: JwtState.java:55

◆ getKeyEncryptionAlgorithm()

KeyEncryptionAlgorithm org.xdi.oxauth.client.model.JwtState.getKeyEncryptionAlgorithm ( )
inline
110  {
111  return keyEncryptionAlgorithm;
112  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43

◆ getKeyId()

String org.xdi.oxauth.client.model.JwtState.getKeyId ( )
inline

Identifier of the key used to sign this state token at the issuer. Identifier of the key used to encrypt this JWT state token at the issuer.

戻り値
The key identifier
132  {
133  return keyId;
134  }
String keyId
Definition: JwtState.java:45

◆ getRfp()

String org.xdi.oxauth.client.model.JwtState.getRfp ( )
inline

String containing a verifiable identifier for the browser session, that cannot be guessed by a third party. The verification of this element by the client protects it from accepting authorization responses generated in response to forged requests generated by third parties.

戻り値
The Request Forgery Protection value
155  {
156  return rfp;
157  }
String rfp
Definition: JwtState.java:48

◆ getSignatureAlgorithm()

SignatureAlgorithm org.xdi.oxauth.client.model.JwtState.getSignatureAlgorithm ( )
inline
102  {
103  return signatureAlgorithm;
104  }
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42

◆ getTargetLinkUri()

String org.xdi.oxauth.client.model.JwtState.getTargetLinkUri ( )
inline

URI containing the location the user agent is to be redirected to after authorization.

戻り値
The target link URI
261  {
262  return targetLinkUri;
263  }
String targetLinkUri
Definition: JwtState.java:53

◆ getType()

JwtType org.xdi.oxauth.client.model.JwtState.getType ( )
inline
94  {
95  return type;
96  }
JwtType type
Definition: JwtState.java:41

◆ headerToJSONObject()

JSONObject org.xdi.oxauth.client.model.JwtState.headerToJSONObject ( ) throws InvalidJwtException
inlineprotected
462  {
463  JwtHeader jwtHeader = new JwtHeader();
464 
465  jwtHeader.setType(type);
466  if (keyEncryptionAlgorithm != null && blockEncryptionAlgorithm != null) {
467  jwtHeader.setAlgorithm(keyEncryptionAlgorithm);
468  jwtHeader.setEncryptionMethod(blockEncryptionAlgorithm);
469  } else {
470  jwtHeader.setAlgorithm(signatureAlgorithm);
471  }
472  jwtHeader.setKeyId(keyId);
473 
474  return jwtHeader.toJsonObject();
475  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43
JwtType type
Definition: JwtState.java:41
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42
String keyId
Definition: JwtState.java:45
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44

◆ payloadToJSONObject()

JSONObject org.xdi.oxauth.client.model.JwtState.payloadToJSONObject ( ) throws JSONException
inlineprotected
477  {
478  JSONObject obj = new JSONObject();
479 
480  try {
481  if (StringUtils.isNotBlank(rfp)) {
482  obj.put(RFP, rfp);
483  }
484  if (StringUtils.isNotBlank(keyId)) {
485  obj.put(KID, keyId);
486  }
487  if (StringUtils.isNotBlank(iat)) {
488  obj.put(IAT, iat);
489  }
490  if (StringUtils.isNotBlank(exp)) {
491  obj.put(EXP, exp);
492  }
493  if (StringUtils.isNotBlank(iss)) {
494  obj.put(ISS, iss);
495  }
496  if (StringUtils.isNotBlank(aud)) {
497  obj.put(AUD, aud);
498  }
499  if (StringUtils.isNotBlank(targetLinkUri)) {
500  obj.put(TARGET_LINK_URI, URLEncoder.encode(targetLinkUri, "UTF-8"));
501  }
502  if (StringUtils.isNotBlank(as)) {
503  obj.put(AS, as);
504  }
505  if (StringUtils.isNotBlank(jti)) {
506  obj.put(JTI, jti);
507  }
508  if (StringUtils.isNotBlank(atHash)) {
509  obj.put(AT_HASH, atHash);
510  }
511  if (StringUtils.isNotBlank(cHash)) {
512  obj.put(C_HASH, cHash);
513  }
514  if (additionalClaims != null) {
515  obj.put(ADDITIONAL_CLAIMS, additionalClaims);
516  }
517  } catch (UnsupportedEncodingException e) {
518  e.printStackTrace();
519  }
520 
521  return obj;
522  }
JSONObject additionalClaims
Definition: JwtState.java:58
String rfp
Definition: JwtState.java:48
String jti
Definition: JwtState.java:55
String as
Definition: JwtState.java:54
String exp
Definition: JwtState.java:50
String iss
Definition: JwtState.java:51
String aud
Definition: JwtState.java:52
String atHash
Definition: JwtState.java:56
String iat
Definition: JwtState.java:49
String targetLinkUri
Definition: JwtState.java:53
String keyId
Definition: JwtState.java:45
String cHash
Definition: JwtState.java:57

◆ setAdditionalClaims()

void org.xdi.oxauth.client.model.JwtState.setAdditionalClaims ( JSONObject  additionalClaims)
inline
392  {
394  }
JSONObject additionalClaims
Definition: JwtState.java:58

◆ setAs()

void org.xdi.oxauth.client.model.JwtState.setAs ( String  as)
inline

String identifying the authorization server that this request was sent to.

引数
asThe authorization server
288  {
289  this.as = as;
290  }
String as
Definition: JwtState.java:54

◆ setAtHash()

void org.xdi.oxauth.client.model.JwtState.setAtHash ( String  atHash)
inline

Access Token hash value. Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII representation of the "access_token" value, where the hash algorithm used is the hash algorithm used in the "alg" parameter of the State Token's JWS header. For instance, if the "alg" is "RS256", hash the "access_token" value with SHA-256, then take the left-most 128 bits and base64url encode them. The "at_hash" value is a case sensitive string. This is REQUIRED if the JWT [RFC7519] state token is being produced by the AS and issued with a "access_token" in the authorization response.

引数
atHashThe access token hash value
350  {
351  this.atHash = atHash;
352  }
String atHash
Definition: JwtState.java:56

◆ setAud()

void org.xdi.oxauth.client.model.JwtState.setAud ( String  aud)
inline

String identifying the client that this state value is intended for.

引数
audThe audience
252  {
253  this.aud = aud;
254  }
String aud
Definition: JwtState.java:52

◆ setBlockEncryptionAlgorithm()

void org.xdi.oxauth.client.model.JwtState.setBlockEncryptionAlgorithm ( BlockEncryptionAlgorithm  blockEncryptionAlgorithm)
inline
122  {
124  }
BlockEncryptionAlgorithm blockEncryptionAlgorithm
Definition: JwtState.java:44

◆ setcHash()

void org.xdi.oxauth.client.model.JwtState.setcHash ( String  cHash)
inline

Code hash value. Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII representation of the "code" value, where the hash algorithm used is the hash algorithm used in the "alg" header parameter of the State Token's JWS [RFC7515] header. For instance, if the "alg" is "HS512", hash the "code" value with SHA-512, then take the left-most 256 bits and base64url encode them. The "c_hash" value is a case sensitive string. This is REQUIRED if the JWT [RFC7519] state token is being produced by the AS and issued with a "code" in the authorization response.

引数
cHashThe code hash value
384  {
385  this.cHash = cHash;
386  }
String cHash
Definition: JwtState.java:57

◆ setExp()

void org.xdi.oxauth.client.model.JwtState.setExp ( String  exp)
inline

The expiration time claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing. The processing of the "exp" claim requires that the current date/time MUST be before the expiration date/time listed in the "exp" claim. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value MUST be a number containing an IntDate value.

引数
expThe expiration time value
216  {
217  this.exp = exp;
218  }
String exp
Definition: JwtState.java:50

◆ setIat()

void org.xdi.oxauth.client.model.JwtState.setIat ( String  iat)
inline

Timestamp of when this Authorization Request was issued.

引数
iatThe Issued at value
186  {
187  this.iat = iat;
188  }
String iat
Definition: JwtState.java:49

◆ setIss()

void org.xdi.oxauth.client.model.JwtState.setIss ( String  iss)
inline

String identifying the party that issued this state value.

引数
issThe issuer value
234  {
235  this.iss = iss;
236  }
String iss
Definition: JwtState.java:51

◆ setJti()

void org.xdi.oxauth.client.model.JwtState.setJti ( String  jti)
inline

The "jti" (JWT ID) claim provides a unique identifier for the JWT. The identifier value MUST be assigned in a manner that ensures that there is a negligible probability that the same value will be accidentally assigned to a different data object. The "jti" claim can be used to prevent the JWT from being replayed. The "jti" value is a case-sensitive string.

引数
jtiThe JWT ID
316  {
317  this.jti = jti;
318  }
String jti
Definition: JwtState.java:55

◆ setKeyEncryptionAlgorithm()

void org.xdi.oxauth.client.model.JwtState.setKeyEncryptionAlgorithm ( KeyEncryptionAlgorithm  keyEncryptionAlgorithm)
inline
114  {
116  }
KeyEncryptionAlgorithm keyEncryptionAlgorithm
Definition: JwtState.java:43

◆ setKeyId()

void org.xdi.oxauth.client.model.JwtState.setKeyId ( String  keyId)
inline

Identifier of the key used to sign this state token at the issuer. Identifier of the key used to encrypt this JWT state token at the issuer.

引数
keyIdThe key identifier
142  {
143  this.keyId = keyId;
144  }
String keyId
Definition: JwtState.java:45

◆ setRfp()

void org.xdi.oxauth.client.model.JwtState.setRfp ( String  rfp)
inline

String containing a verifiable identifier for the browser session, that cannot be guessed by a third party. The verification of this element by the client protects it from accepting authorization responses generated in response to forged requests generated by third parties.

引数
rfpThe Request Forgery Protection value
168  {
169  this.rfp = rfp;
170  }
String rfp
Definition: JwtState.java:48

◆ setSignatureAlgorithm()

void org.xdi.oxauth.client.model.JwtState.setSignatureAlgorithm ( SignatureAlgorithm  signatureAlgorithm)
inline
106  {
108  }
SignatureAlgorithm signatureAlgorithm
Definition: JwtState.java:42

◆ setTargetLinkUri()

void org.xdi.oxauth.client.model.JwtState.setTargetLinkUri ( String  targetLinkUri)
inline

URI containing the location the user agent is to be redirected to after authorization.

引数
targetLinkUriThe target link URI
270  {
272  }
String targetLinkUri
Definition: JwtState.java:53

◆ setType()

void org.xdi.oxauth.client.model.JwtState.setType ( JwtType  type)
inline
98  {
99  this.type = type;
100  }
JwtType type
Definition: JwtState.java:41

メンバ詳解

◆ additionalClaims

JSONObject org.xdi.oxauth.client.model.JwtState.additionalClaims
private

◆ as

String org.xdi.oxauth.client.model.JwtState.as
private

◆ atHash

String org.xdi.oxauth.client.model.JwtState.atHash
private

◆ aud

String org.xdi.oxauth.client.model.JwtState.aud
private

◆ blockEncryptionAlgorithm

BlockEncryptionAlgorithm org.xdi.oxauth.client.model.JwtState.blockEncryptionAlgorithm
private

◆ cHash

String org.xdi.oxauth.client.model.JwtState.cHash
private

◆ cryptoProvider

AbstractCryptoProvider org.xdi.oxauth.client.model.JwtState.cryptoProvider
private

◆ exp

String org.xdi.oxauth.client.model.JwtState.exp
private

◆ iat

String org.xdi.oxauth.client.model.JwtState.iat
private

◆ iss

String org.xdi.oxauth.client.model.JwtState.iss
private

◆ jti

String org.xdi.oxauth.client.model.JwtState.jti
private

◆ keyEncryptionAlgorithm

KeyEncryptionAlgorithm org.xdi.oxauth.client.model.JwtState.keyEncryptionAlgorithm
private

◆ keyId

String org.xdi.oxauth.client.model.JwtState.keyId
private

◆ LOG

final Logger org.xdi.oxauth.client.model.JwtState.LOG = Logger.getLogger(JwtState.class)
staticprivate

◆ rfp

String org.xdi.oxauth.client.model.JwtState.rfp
private

◆ sharedKey

String org.xdi.oxauth.client.model.JwtState.sharedKey
private

◆ signatureAlgorithm

SignatureAlgorithm org.xdi.oxauth.client.model.JwtState.signatureAlgorithm
private

◆ targetLinkUri

String org.xdi.oxauth.client.model.JwtState.targetLinkUri
private

◆ type

JwtType org.xdi.oxauth.client.model.JwtState.type
private

このクラス詳解は次のファイルから抽出されました: