Class CeresPrivateKeyReference

  • All Implemented Interfaces:
    PrivateKeyReference

    public final class CeresPrivateKeyReference
    extends java.lang.Object
    implements PrivateKeyReference
    Clave privada de una tarjeta CERES. La clase no contiene la clave privada en si, sino una referencia a ella.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int keySize  
      private byte reference  
    • Constructor Summary

      Constructors 
      Constructor Description
      CeresPrivateKeyReference​(byte r, int kSize)
      Crea una referencia a una clave privada de tarjeta CERES.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getKeyBitSize()
      Obtiene el tamño en bits de la clave.
      byte getKeyReference()
      Recupera la referencia de la clave.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • reference

        private final transient byte reference
      • keySize

        private final transient int keySize
    • Constructor Detail

      • CeresPrivateKeyReference

        public CeresPrivateKeyReference​(byte r,
                                        int kSize)
        Crea una referencia a una clave privada de tarjeta CERES.
        Parameters:
        r - Referencia interna de la clave.
        kSize - Tamaño en bits de la clave privada.
    • Method Detail

      • getKeyReference

        public byte getKeyReference()
        Recupera la referencia de la clave.
        Returns:
        Referencia de la clave.
      • getKeyBitSize

        public int getKeyBitSize()
        Obtiene el tamño en bits de la clave.
        Returns:
        Tamño en bits de la clave.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object