- java.lang.Object
-
- swim.security.KeyDef
-
- swim.security.PublicKeyDef
-
- swim.security.RsaPublicKeyDef
-
- All Implemented Interfaces:
RsaKeyDef
public class RsaPublicKeyDef extends PublicKeyDef implements RsaKeyDef
-
-
Field Summary
Fields Modifier and Type Field Description protected BigInteger
modulus
protected BigInteger
publicExponent
protected RSAPublicKey
publicKey
-
Constructor Summary
Constructors Constructor Description RsaPublicKeyDef(BigInteger modulus, BigInteger publicExponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
static Form<RsaPublicKeyDef>
form()
static RsaPublicKeyDef
from(RSAPublicKey key)
int
hashCode()
Key
key()
BigInteger
modulus()
BigInteger
publicExponent()
RSAPublicKey
publicKey()
Value
toValue()
-
Methods inherited from class swim.security.PublicKeyDef
from, publicKeyForm
-
-
-
-
Field Detail
-
modulus
protected final BigInteger modulus
-
publicExponent
protected final BigInteger publicExponent
-
publicKey
protected RSAPublicKey publicKey
-
-
Constructor Detail
-
RsaPublicKeyDef
public RsaPublicKeyDef(BigInteger modulus, BigInteger publicExponent)
-
-
Method Detail
-
modulus
public final BigInteger modulus()
-
publicExponent
public final BigInteger publicExponent()
-
publicKey
public RSAPublicKey publicKey()
- Specified by:
publicKey
in classPublicKeyDef
-
toValue
public Value toValue()
-
from
public static RsaPublicKeyDef from(RSAPublicKey key)
-
form
@Kind public static Form<RsaPublicKeyDef> form()
-
-