Class SodiumSigner

  • All Implemented Interfaces:
    io.aether.crypto.CryptoProviderUnit, io.aether.crypto.SignChecker, io.aether.crypto.Signer, io.aether.utils.ToString

    public class SodiumSigner
    extends java.lang.Object
    implements io.aether.crypto.Signer
    • Constructor Summary

      Constructors 
      Constructor Description
      SodiumSigner​(io.aether.crypto.AKey.SignPublic publicKey, io.aether.crypto.AKey.SignPrivate privateKey, com.goterl.lazysodium.LazySodiumJava lazySodium)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkSign​(byte[] data, io.aether.crypto.Sign sign)  
      io.aether.crypto.CryptoProvider getCryptoProvider()  
      java.lang.String getProviderName()  
      io.aether.crypto.AKey.SignPublic getPublicKey()  
      io.aether.crypto.Sign sign​(byte[] data)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.aether.crypto.Signer

        sign
      • Methods inherited from interface io.aether.utils.ToString

        toString, toString2
    • Constructor Detail

      • SodiumSigner

        public SodiumSigner​(io.aether.crypto.AKey.SignPublic publicKey,
                            io.aether.crypto.AKey.SignPrivate privateKey,
                            com.goterl.lazysodium.LazySodiumJava lazySodium)
    • Method Detail

      • sign

        public io.aether.crypto.Sign sign​(byte[] data)
        Specified by:
        sign in interface io.aether.crypto.Signer
      • checkSign

        public boolean checkSign​(byte[] data,
                                 io.aether.crypto.Sign sign)
        Specified by:
        checkSign in interface io.aether.crypto.SignChecker
      • getPublicKey

        public io.aether.crypto.AKey.SignPublic getPublicKey()
        Specified by:
        getPublicKey in interface io.aether.crypto.SignChecker
      • getProviderName

        public java.lang.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