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 java.math.BigInteger |
exponent |
private static int |
exponentValid |
private java.math.BigInteger |
modulus |
private static int |
modulusValid |
private ASN1ObjectIdentifier |
usage |
private int |
valid |
| Constructor and Description |
|---|
RSAPublicKey(ASN1ObjectIdentifier usage,
java.math.BigInteger modulus,
java.math.BigInteger exponent) |
RSAPublicKey(ASN1Sequence seq) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getModulus() |
java.math.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 java.math.BigInteger modulus
private java.math.BigInteger exponent
private int valid
private static int modulusValid
private static int exponentValid
RSAPublicKey(ASN1Sequence seq)
public RSAPublicKey(ASN1ObjectIdentifier usage, java.math.BigInteger modulus, java.math.BigInteger exponent)
public ASN1ObjectIdentifier getUsage()
getUsage in class PublicKeyDataObjectpublic java.math.BigInteger getModulus()
public java.math.BigInteger getPublicExponent()
private void setModulus(UnsignedInteger modulus)
private void setExponent(UnsignedInteger exponent)
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object