Class EncryptedData


  • public final class EncryptedData
    extends java.lang.Object

    An instance of EncryptedData is a holder for an initialization vector and encrypted bytes. It is typically used to hold encrypted private key bytes.

    The initialisation vector is random data that is used to initialise the AES block cipher when the private key bytes were encrypted. You need these for decryption.

    • Constructor Summary

      Constructors 
      Constructor Description
      EncryptedData​(byte[] initialisationVector, byte[] encryptedBytes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • initialisationVector

        public final byte[] initialisationVector
      • encryptedBytes

        public final byte[] encryptedBytes
    • Constructor Detail

      • EncryptedData

        public EncryptedData​(byte[] initialisationVector,
                             byte[] encryptedBytes)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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