Package es.gob.jmulticard
Class BcCryptoHelper.CustomRsaPublicKey
java.lang.Object
es.gob.jmulticard.BcCryptoHelper.CustomRsaPublicKey
- All Implemented Interfaces:
Serializable
,RSAKey
,RSAPublicKey
,Key
,PublicKey
- Enclosing class:
BcCryptoHelper
Clave pública RSA con control directo de la creaci&oaccute;n como
BigInteger
de módulo y exponente (para evitar problemas
de interpretación del signo (que puede darse en entornos como J2Obc).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BigInteger
private final byte[]
private final BigInteger
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
keyBytes
private final byte[] keyBytes -
modulus
-
exponent
-
-
Constructor Details
-
CustomRsaPublicKey
CustomRsaPublicKey(byte[] pukBytes) throws IOException - Throws:
IOException
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
getModulus
- Specified by:
getModulus
in interfaceRSAKey
-
getPublicExponent
- Specified by:
getPublicExponent
in interfaceRSAPublicKey
-