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

公開メンバ関数

 RSAPublicKey (BigInteger modulus, BigInteger publicExponent)
 
 RSAPublicKey (String modulus, String publicExponent)
 
BigInteger getModulus ()
 
void setModulus (BigInteger modulus)
 
BigInteger getPublicExponent ()
 
void setPublicExponent (BigInteger publicExponent)
 
JSONObject toJSONObject () throws JSONException
 
String toString ()
 
String getKeyId ()
 
void setKeyId (String keyId)
 
SignatureAlgorithm getSignatureAlgorithm ()
 
void setSignatureAlgorithm (SignatureAlgorithm signatureAlgorithm)
 
Certificate getCertificate ()
 
void setCertificate (Certificate certificate)
 

非公開変数類

BigInteger modulus
 
BigInteger publicExponent
 

静的非公開変数類

static final String RSA_ALGORITHM = "RSA"
 
static final String USE = "sig"
 

詳解

The Public Key for the RSA Algorithm

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

構築子と解体子

◆ RSAPublicKey() [1/2]

org.xdi.oxauth.model.crypto.signature.RSAPublicKey.RSAPublicKey ( BigInteger  modulus,
BigInteger  publicExponent 
)
inline
33  {
34  this.modulus = modulus;
36  }
BigInteger publicExponent
Definition: RSAPublicKey.java:31
BigInteger modulus
Definition: RSAPublicKey.java:30

◆ RSAPublicKey() [2/2]

org.xdi.oxauth.model.crypto.signature.RSAPublicKey.RSAPublicKey ( String  modulus,
String  publicExponent 
)
inline
38  {
39  this(new BigInteger(1, Base64Util.base64urldecode(modulus)),
40  new BigInteger(1, Base64Util.base64urldecode(publicExponent)));
41  }
BigInteger publicExponent
Definition: RSAPublicKey.java:31
BigInteger modulus
Definition: RSAPublicKey.java:30

関数詳解

◆ getCertificate()

Certificate org.xdi.oxauth.model.crypto.PublicKey.getCertificate ( )
inlineinherited
42  {
43  return certificate;
44  }
Certificate certificate
Definition: PublicKey.java:24

◆ getKeyId()

String org.xdi.oxauth.model.crypto.PublicKey.getKeyId ( )
inlineinherited
26  {
27  return keyId;
28  }
String keyId
Definition: PublicKey.java:20

◆ getModulus()

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPublicKey.getModulus ( )
inline
43  {
44  return modulus;
45  }
BigInteger modulus
Definition: RSAPublicKey.java:30

◆ getPublicExponent()

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPublicKey.getPublicExponent ( )
inline
51  {
52  return publicExponent;
53  }
BigInteger publicExponent
Definition: RSAPublicKey.java:31

◆ getSignatureAlgorithm()

SignatureAlgorithm org.xdi.oxauth.model.crypto.PublicKey.getSignatureAlgorithm ( )
inlineinherited
34  {
35  return signatureAlgorithm;
36  }
SignatureAlgorithm signatureAlgorithm
Definition: PublicKey.java:22

◆ setCertificate()

void org.xdi.oxauth.model.crypto.PublicKey.setCertificate ( Certificate  certificate)
inlineinherited
46  {
47  this.certificate = certificate;
48  }
Certificate certificate
Definition: PublicKey.java:24

◆ setKeyId()

void org.xdi.oxauth.model.crypto.PublicKey.setKeyId ( String  keyId)
inlineinherited
30  {
31  this.keyId = keyId;
32  }
String keyId
Definition: PublicKey.java:20

◆ setModulus()

void org.xdi.oxauth.model.crypto.signature.RSAPublicKey.setModulus ( BigInteger  modulus)
inline
47  {
48  this.modulus = modulus;
49  }
BigInteger modulus
Definition: RSAPublicKey.java:30

◆ setPublicExponent()

void org.xdi.oxauth.model.crypto.signature.RSAPublicKey.setPublicExponent ( BigInteger  publicExponent)
inline
55  {
57  }
BigInteger publicExponent
Definition: RSAPublicKey.java:31

◆ setSignatureAlgorithm()

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

◆ toJSONObject()

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

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

60  {
61  JSONObject jsonObject = new JSONObject();
62 
63  jsonObject.put(MODULUS, Base64Util.base64urlencodeUnsignedBigInt(modulus));
64  jsonObject.put(EXPONENT, Base64Util.base64urlencodeUnsignedBigInt(publicExponent));
65  jsonObject.put(X, JSONObject.NULL);
66  jsonObject.put(Y, JSONObject.NULL);
67 
68  return jsonObject;
69  }
BigInteger publicExponent
Definition: RSAPublicKey.java:31
BigInteger modulus
Definition: RSAPublicKey.java:30

◆ toString()

String org.xdi.oxauth.model.crypto.signature.RSAPublicKey.toString ( )
inline
72  {
73  try {
74  return toJSONObject().toString(4);
75  } catch (JSONException e) {
76  return StringUtils.EMPTY_STRING;
77  } catch (Exception e) {
78  return StringUtils.EMPTY_STRING;
79  }
80  }
JSONObject toJSONObject()
Definition: RSAPublicKey.java:60

メンバ詳解

◆ modulus

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

◆ publicExponent

BigInteger org.xdi.oxauth.model.crypto.signature.RSAPublicKey.publicExponent
private

◆ RSA_ALGORITHM

final String org.xdi.oxauth.model.crypto.signature.RSAPublicKey.RSA_ALGORITHM = "RSA"
staticprivate

◆ USE

final String org.xdi.oxauth.model.crypto.signature.RSAPublicKey.USE = "sig"
staticprivate

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