Class BCRSAPublicKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPublicKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.interfaces.RSAKey
,java.security.interfaces.RSAPublicKey
,java.security.Key
,java.security.PublicKey
public class BCRSAPublicKey extends java.lang.Object implements java.security.interfaces.RSAPublicKey
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAlgorithm()
byte[]
getEncoded()
java.lang.String
getFormat()
java.math.BigInteger
getModulus()
return the modulus.java.math.BigInteger
getPublicExponent()
return the public exponent.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getModulus
public java.math.BigInteger getModulus()
return the modulus.- Specified by:
getModulus
in interfacejava.security.interfaces.RSAKey
- Returns:
- the modulus.
-
getPublicExponent
public java.math.BigInteger getPublicExponent()
return the public exponent.- Specified by:
getPublicExponent
in interfacejava.security.interfaces.RSAPublicKey
- Returns:
- the public exponent.
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfacejava.security.Key
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-