Package es.gob.jmulticard
Class BcCryptoHelper.CustomRsaPublicKey
- java.lang.Object
-
- es.gob.jmulticard.BcCryptoHelper.CustomRsaPublicKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.interfaces.RSAKey
,java.security.interfaces.RSAPublicKey
,java.security.Key
,java.security.PublicKey
- Enclosing class:
- BcCryptoHelper
public static class BcCryptoHelper.CustomRsaPublicKey extends java.lang.Object implements java.security.interfaces.RSAPublicKey
Clave pública RSA con control directo de la creaci&oaccute;n comoBigInteger
de módulo y exponente (para evitar problemas de interpretación del signo (que puede darse en entornos como J2Obc).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.math.BigInteger
exponent
private byte[]
keyBytes
private java.math.BigInteger
modulus
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CustomRsaPublicKey(byte[] pukBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
byte[]
getEncoded()
java.lang.String
getFormat()
java.math.BigInteger
getModulus()
java.math.BigInteger
getPublicExponent()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
keyBytes
private final byte[] keyBytes
-
modulus
private final java.math.BigInteger modulus
-
exponent
private final java.math.BigInteger exponent
-
-
Method Detail
-
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
-
getModulus
public java.math.BigInteger getModulus()
- Specified by:
getModulus
in interfacejava.security.interfaces.RSAKey
-
getPublicExponent
public java.math.BigInteger getPublicExponent()
- Specified by:
getPublicExponent
in interfacejava.security.interfaces.RSAPublicKey
-
-