Class Encrypter


  • public final class Encrypter
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      java.io.InputStream encrypt​(byte[] content)  
      java.io.InputStream encrypt​(java.io.InputStream content)  
      static Encrypter using​(java.security.cert.X509Certificate certificate)  
      static Encrypter using​(DigipostPublicKey key)  
      • Methods inherited from class java.lang.Object

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

      • FAIL_IF_TRYING_TO_ENCRYPT

        public static final Encrypter FAIL_IF_TRYING_TO_ENCRYPT
        Encrypter with no key, i.e. it will throw an appropriate exception if trying to encrypt anything with it.
    • Method Detail

      • using

        public static Encrypter using​(java.security.cert.X509Certificate certificate)
      • encrypt

        public java.io.InputStream encrypt​(java.io.InputStream content)
      • encrypt

        public java.io.InputStream encrypt​(byte[] content)