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.RSAPublicKeyClave pública RSA con control directo de la creaci&oaccute;n comoBigIntegerde 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.BigIntegerexponentprivate byte[]keyBytesprivate java.math.BigIntegermodulusprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CustomRsaPublicKey(byte[] pukBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()java.math.BigIntegergetModulus()java.math.BigIntegergetPublicExponent()
-
-
-
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:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getModulus
public java.math.BigInteger getModulus()
- Specified by:
getModulusin interfacejava.security.interfaces.RSAKey
-
getPublicExponent
public java.math.BigInteger getPublicExponent()
- Specified by:
getPublicExponentin interfacejava.security.interfaces.RSAPublicKey
-
-