public class AmRSAPublicKey extends AmPublicKey implements java.security.interfaces.RSAPublicKey
vec
Constructor and Description |
---|
AmRSAPublicKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
java.math.BigInteger n,
java.math.BigInteger e) |
AmRSAPublicKey(org.bouncycastle.asn1.ASN1Sequence seq) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(org.bouncycastle.asn1.ASN1Sequence seq)
Extrahiert aus der übergebenen DERSequence die Daten des Public Keys Objects.
|
java.lang.String |
getAlgorithm()
Returns the standard algorithm name for this key.
|
byte[] |
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
java.lang.String |
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
java.math.BigInteger |
getModulus()
Returns the modulus.
|
java.math.BigInteger |
getPublicExponent()
Returns the public exponent.
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Return an object, possibly constructed, of ASN.1 primitives
|
getOID
public AmRSAPublicKey(org.bouncycastle.asn1.ASN1Sequence seq)
seq
- public AmRSAPublicKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, java.math.BigInteger n, java.math.BigInteger e)
public java.lang.String getAlgorithm()
java.security.Key
getAlgorithm
in interface java.security.Key
public byte[] getEncoded()
java.security.Key
getEncoded
in interface java.security.Key
public java.lang.String getFormat()
java.security.Key
"X.509"
. Similarly,
the name of the ASN.1 data format for private keys is
PrivateKeyInfo,
as defined by the PKCS #8 standard; in this case, the returned format is
"PKCS#8"
.getFormat
in interface java.security.Key
protected void decode(org.bouncycastle.asn1.ASN1Sequence seq)
AmPublicKey
decode
in class AmPublicKey
public java.math.BigInteger getModulus()
java.security.interfaces.RSAKey
getModulus
in interface java.security.interfaces.RSAKey
public java.math.BigInteger getPublicExponent()
java.security.interfaces.RSAPublicKey
getPublicExponent
in interface java.security.interfaces.RSAPublicKey
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class AmPublicKey