public class RSAPublicKey extends PublicKeyDataObject
Certificate Holder Authorization ::= SEQUENCE {
// modulus should be at least 1024bit and a multiple of 512.
DERTaggedObject modulus,
// access rights exponent
DERTaggedObject accessRights,
}
| Modifier and Type | Field and Description |
|---|---|
private BigInteger |
exponent |
private static int |
exponentValid |
private BigInteger |
modulus |
private static int |
modulusValid |
private ASN1ObjectIdentifier |
usage |
private int |
valid |
| Constructor and Description |
|---|
RSAPublicKey(ASN1ObjectIdentifier usage,
BigInteger modulus,
BigInteger exponent) |
RSAPublicKey(ASN1Sequence seq) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getModulus() |
BigInteger |
getPublicExponent() |
ASN1ObjectIdentifier |
getUsage() |
private void |
setExponent(UnsignedInteger exponent) |
private void |
setModulus(UnsignedInteger modulus) |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
getInstanceequals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectprivate ASN1ObjectIdentifier usage
private BigInteger modulus
private BigInteger exponent
private int valid
private static int modulusValid
private static int exponentValid
RSAPublicKey(ASN1Sequence seq)
public RSAPublicKey(ASN1ObjectIdentifier usage, BigInteger modulus, BigInteger exponent)
public ASN1ObjectIdentifier getUsage()
getUsage in class PublicKeyDataObjectpublic BigInteger getModulus()
public BigInteger getPublicExponent()
private void setModulus(UnsignedInteger modulus)
private void setExponent(UnsignedInteger exponent)
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object