Class SodiumAsymmetricEngine

  • All Implemented Interfaces:
    io.aether.crypto.CryptoEngine, io.aether.crypto.CryptoProviderUnit

    public class SodiumAsymmetricEngine
    extends java.lang.Object
    implements io.aether.crypto.CryptoEngine
    • Constructor Summary

      Constructors 
      Constructor Description
      SodiumAsymmetricEngine​(io.aether.crypto.AKey.AsymmetricPrivate privateKey, io.aether.crypto.AKey.AsymmetricPublic publicKey)  
      SodiumAsymmetricEngine​(io.aether.crypto.AKey.AsymmetricPublic publicKey)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte @NotNull [] decrypt​(byte @NotNull [] dataBytes)  
      byte @NotNull [] encrypt​(byte @NotNull [] dataBytes)  
      io.aether.crypto.CryptoProvider getCryptoProvider()  
      java.lang.String getProviderName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SodiumAsymmetricEngine

        public SodiumAsymmetricEngine​(io.aether.crypto.AKey.AsymmetricPublic publicKey)
      • SodiumAsymmetricEngine

        public SodiumAsymmetricEngine​(io.aether.crypto.AKey.AsymmetricPrivate privateKey,
                                      io.aether.crypto.AKey.AsymmetricPublic publicKey)
    • Method Detail

      • encrypt

        public byte @NotNull [] encrypt​(byte @NotNull [] dataBytes)
        Specified by:
        encrypt in interface io.aether.crypto.CryptoEngine
      • decrypt

        public byte @NotNull [] decrypt​(byte @NotNull [] dataBytes)
        Specified by:
        decrypt in interface io.aether.crypto.CryptoEngine
      • 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