Class SodiumKey

java.lang.Object
io.aether.crypto.sodium.SodiumKey
All Implemented Interfaces:
io.aether.crypto.AKey, io.aether.crypto.CryptoProviderUnit, io.aether.utils.ToString
Direct Known Subclasses:
SodiumKey.AsymmetricPrivate, SodiumKey.AsymmetricPublic, SodiumKey.SignPrivate, SodiumKey.SignPublic, SodiumKey.Symmetric

public abstract class SodiumKey extends Object implements io.aether.crypto.AKey
  • Field Details

    • data

      protected final byte[] data
    • keyType

      protected final io.aether.crypto.KeyType keyType
    • providerName

      protected final String providerName
      See Also:
    • SODIUM_LIB_CTX

      public static final byte[] SODIUM_LIB_CTX
  • Constructor Details

    • SodiumKey

      protected SodiumKey(byte[] data, io.aether.crypto.KeyType keyType)
  • Method Details

    • getData

      public byte[] getData()
      Specified by:
      getData in interface io.aether.crypto.AKey
    • getKeyType

      public io.aether.crypto.KeyType getKeyType()
      Specified by:
      getKeyType in interface io.aether.crypto.AKey
    • getProviderName

      public String getProviderName()
      Specified by:
      getProviderName in interface io.aether.crypto.CryptoProviderUnit
    • getCryptoProvider

      public io.aether.crypto.CryptoProvider getCryptoProvider()
      Specified by:
      getCryptoProvider in interface io.aether.crypto.CryptoProviderUnit
    • size

      public int size()
      Specified by:
      size in interface io.aether.crypto.AKey
    • keyToString

      public String keyToString()
      Specified by:
      keyToString in interface io.aether.crypto.AKey
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object