gluu
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.model.crypto.signature.RSAPrivateKey クラス
org.xdi.oxauth.model.crypto.signature.RSAPrivateKey の継承関係図
Inheritance graph
org.xdi.oxauth.model.crypto.signature.RSAPrivateKey 連携図
Collaboration graph

公開メンバ関数

 RSAPrivateKey (BigInteger modulus, BigInteger privateExponent)
 
 RSAPrivateKey (String modulus, String privateExponent)
 
BigInteger getModulus ()
 
void setModulus (BigInteger modulus)
 
BigInteger getPrivateExponent ()
 
void setPrivateExponent (BigInteger privateExponent)
 
JSONObject toJSONObject () throws JSONException
 
String toString ()
 
String getKeyId ()
 
void setKeyId (String keyId)
 
SignatureAlgorithm getSignatureAlgorithm ()
 
void setSignatureAlgorithm (SignatureAlgorithm signatureAlgorithm)
 

非公開変数類

BigInteger modulus
 
BigInteger privateExponent
 

詳解

The Private Key for the RSA Algorithm

著者
Javier Rojas Blum
バージョン
July 31, 2016

構築子と解体子

◆ RSAPrivateKey() [1/2]

org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.RSAPrivateKey ( BigInteger  modulus,
BigInteger  privateExponent 
)
inline
30  {
31  this.modulus = modulus;
33  }
BigInteger modulus
Definition: RSAPrivateKey.java:27
BigInteger privateExponent
Definition: RSAPrivateKey.java:28

◆ RSAPrivateKey() [2/2]

org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.RSAPrivateKey ( String  modulus,
String  privateExponent 
)
inline
35  {
36  this.modulus = new BigInteger(1, Base64Util.base64urldecode(modulus));
37  this.privateExponent = new BigInteger(1, Base64Util.base64urldecode(privateExponent));
38  }
BigInteger modulus
Definition: RSAPrivateKey.java:27
BigInteger privateExponent
Definition: RSAPrivateKey.java:28

関数詳解

◆ getKeyId()

String org.xdi.oxauth.model.crypto.PrivateKey.getKeyId ( )
inlineinherited
24  {
25  return keyId;
26  }
String keyId
Definition: PrivateKey.java:20

◆ getModulus()

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.getModulus ( )
inline
40  {
41  return modulus;
42  }
BigInteger modulus
Definition: RSAPrivateKey.java:27

◆ getPrivateExponent()

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.getPrivateExponent ( )
inline
48  {
49  return privateExponent;
50  }
BigInteger privateExponent
Definition: RSAPrivateKey.java:28

◆ getSignatureAlgorithm()

SignatureAlgorithm org.xdi.oxauth.model.crypto.PrivateKey.getSignatureAlgorithm ( )
inlineinherited
32  {
33  return signatureAlgorithm;
34  }
SignatureAlgorithm signatureAlgorithm
Definition: PrivateKey.java:22

◆ setKeyId()

void org.xdi.oxauth.model.crypto.PrivateKey.setKeyId ( String  keyId)
inlineinherited
28  {
29  this.keyId = keyId;
30  }
String keyId
Definition: PrivateKey.java:20

◆ setModulus()

void org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.setModulus ( BigInteger  modulus)
inline
44  {
45  this.modulus = modulus;
46  }
BigInteger modulus
Definition: RSAPrivateKey.java:27

◆ setPrivateExponent()

void org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.setPrivateExponent ( BigInteger  privateExponent)
inline
52  {
54  }
BigInteger privateExponent
Definition: RSAPrivateKey.java:28

◆ setSignatureAlgorithm()

void org.xdi.oxauth.model.crypto.PrivateKey.setSignatureAlgorithm ( SignatureAlgorithm  signatureAlgorithm)
inlineinherited
36  {
38  }
SignatureAlgorithm signatureAlgorithm
Definition: PrivateKey.java:22

◆ toJSONObject()

JSONObject org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.toJSONObject ( ) throws JSONException
inline

org.xdi.oxauth.model.common.JSONableを実装しています。

57  {
58  JSONObject jsonObject = new JSONObject();
59 
60  jsonObject.put(MODULUS, Base64Util.base64urlencodeUnsignedBigInt(modulus));
61  jsonObject.put(EXPONENT, Base64Util.base64urlencodeUnsignedBigInt(privateExponent));
62  jsonObject.put(D, JSONObject.NULL);
63 
64  return jsonObject;
65  }
BigInteger modulus
Definition: RSAPrivateKey.java:27
BigInteger privateExponent
Definition: RSAPrivateKey.java:28

◆ toString()

String org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.toString ( )
inline
68  {
69  try {
70  return toJSONObject().toString(4);
71  } catch (JSONException e) {
72  return StringUtils.EMPTY_STRING;
73  } catch (Exception e) {
74  return StringUtils.EMPTY_STRING;
75  }
76  }
JSONObject toJSONObject()
Definition: RSAPrivateKey.java:57

メンバ詳解

◆ modulus

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.modulus
private

◆ privateExponent

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.privateExponent
private

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