- java.lang.Object
-
- swim.security.KeyDef
-
- swim.security.PrivateKeyDef
-
- swim.security.RsaPrivateKeyDef
-
- All Implemented Interfaces:
RsaKeyDef
public class RsaPrivateKeyDef extends PrivateKeyDef implements RsaKeyDef
-
-
Field Summary
Fields Modifier and Type Field Description protected BigInteger
modulus
protected FingerTrieSeq<RsaPrimeDef>
primeDefs
protected BigInteger
privateExponent
protected RSAPrivateKey
privateKey
protected BigInteger
publicExponent
-
Constructor Summary
Constructors Constructor Description RsaPrivateKeyDef(BigInteger modulus, BigInteger privateExponent)
RsaPrivateKeyDef(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, FingerTrieSeq<RsaPrimeDef> primeDefs)
RsaPrivateKeyDef(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, RsaPrimeDef... primeDefs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
static Form<RsaPrivateKeyDef>
form()
static RsaPrivateKeyDef
from(RSAPrivateKey key)
int
hashCode()
Key
key()
BigInteger
modulus()
FingerTrieSeq<RsaPrimeDef>
primeDefs()
BigInteger
privateExponent()
RSAPrivateKey
privateKey()
BigInteger
publicExponent()
Value
toValue()
-
Methods inherited from class swim.security.PrivateKeyDef
from, privateKeyForm
-
-
-
-
Field Detail
-
modulus
protected final BigInteger modulus
-
publicExponent
protected final BigInteger publicExponent
-
privateExponent
protected final BigInteger privateExponent
-
primeDefs
protected final FingerTrieSeq<RsaPrimeDef> primeDefs
-
privateKey
protected RSAPrivateKey privateKey
-
-
Constructor Detail
-
RsaPrivateKeyDef
public RsaPrivateKeyDef(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, FingerTrieSeq<RsaPrimeDef> primeDefs)
-
RsaPrivateKeyDef
public RsaPrivateKeyDef(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, RsaPrimeDef... primeDefs)
-
RsaPrivateKeyDef
public RsaPrivateKeyDef(BigInteger modulus, BigInteger privateExponent)
-
-
Method Detail
-
modulus
public final BigInteger modulus()
-
publicExponent
public final BigInteger publicExponent()
-
privateExponent
public final BigInteger privateExponent()
-
primeDefs
public final FingerTrieSeq<RsaPrimeDef> primeDefs()
-
privateKey
public RSAPrivateKey privateKey()
- Specified by:
privateKey
in classPrivateKeyDef
-
toValue
public Value toValue()
-
from
public static RsaPrivateKeyDef from(RSAPrivateKey key)
-
form
@Kind public static Form<RsaPrivateKeyDef> form()
-
-