Class DniePrivateKey
java.lang.Object
es.gob.jmulticard.jse.provider.DniePrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, RSAKey, RSAPrivateKey, Key, PrivateKey, Destroyable
Clave privada de un DNIe. La clase no contiene la clave privada en sí, sino
una referencia a ella y una referencia al propio DNIe, con el canal seguro
establecido.
- Author:
- Tomás García-Merás.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDniePrivateKey(DniePrivateKeyReference keyReference, BigInteger mod) Crea una clave privada de DNIe. -
Method Summary
Modifier and TypeMethodDescriptionObtiene la tarjeta capaz de operar con esta clave.Obtiene la referencia de la clave privada.byte[]Método no soportado.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Destroyable
destroy, isDestroyedMethods inherited from interface RSAPrivateKey
getParams
-
Constructor Details
-
DniePrivateKey
Crea una clave privada de DNIe.- Parameters:
keyReference- Referencia a la clave privada del DNIe.mod- Módulo de la clave.
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getCryptoCard
Obtiene la tarjeta capaz de operar con esta clave.- Returns:
- Tarjeta capaz de operar con esta clave.
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getFormat
-
getModulus
- Specified by:
getModulusin interfaceRSAKey
-
getPrivateExponent
Método no soportado.- Specified by:
getPrivateExponentin interfaceRSAPrivateKey
-
toString
-
getDniePrivateKeyReference
Obtiene la referencia de la clave privada.- Returns:
- Referencia de la clave privada.
-