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 BigIntegerprivate final byte[]private final BigIntegerprivate 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:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getModulus
- Specified by:
getModulusin interfaceRSAKey
-
getPublicExponent
- Specified by:
getPublicExponentin interfaceRSAPublicKey
-