public abstract class DniePrivateKey
extends java.lang.Object
implements java.security.Key
Modifier and Type | Field and Description |
---|---|
protected PrivateKeyReference |
_privateKeyReference |
Modifier | Constructor and Description |
---|---|
protected |
DniePrivateKey(PrivateKeyReference privateKeyReference)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias() |
java.lang.String |
getId()
Recupera el identificador de la clave.
|
static DniePrivateKey |
getInstance(PrivateKeyReference pkRef,
java.security.PublicKey publicKey)
Creates and return a JCE DNIe private key instance (RSA or EC).
|
Location |
getPath()
Recupera la ruta de la clave.
|
byte[] |
sign(byte[] message)
Signs a message with the private key.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
protected PrivateKeyReference _privateKeyReference
protected DniePrivateKey(PrivateKeyReference privateKeyReference)
privateKeyReference
- public byte[] sign(byte[] message) throws CryptoCardException
message
- CryptoCardException
public static DniePrivateKey getInstance(PrivateKeyReference pkRef, java.security.PublicKey publicKey) throws CryptoCardException
pkRef
- publicKey
- CryptoCardException
public java.lang.String getId()
public Location getPath()
public java.lang.String getAlias()
public java.lang.String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class java.lang.Object