Class WalkEncryption.SymmetricEncryption

    • Field Detail

      • profile

        final java.lang.String profile
        Encryption profile, root name of group of related properties.
      • version

        final java.lang.String version
        Encryption version, reflects actual implementation class.
      • cipherAlgo

        final java.lang.String cipherAlgo
        Full cipher algorithm name.
      • paramsAlgo

        final java.lang.String paramsAlgo
        Cipher algorithm name for parameters lookup.
      • secretKey

        final javax.crypto.SecretKey secretKey
        Generated secret key.
      • context

        volatile java.lang.String context
      • decryptCipher

        volatile javax.crypto.Cipher decryptCipher
    • Constructor Detail

      • SymmetricEncryption

        SymmetricEncryption​(java.util.Properties props)
                     throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • encrypt

        java.io.OutputStream encrypt​(java.io.OutputStream output)
                              throws java.io.IOException
        Specified by:
        encrypt in class WalkEncryption
        Throws:
        java.io.IOException
      • request

        void request​(java.net.HttpURLConnection conn,
                     java.lang.String prefix)
              throws java.io.IOException
        Specified by:
        request in class WalkEncryption
        Throws:
        java.io.IOException
      • validate

        void validate​(java.net.HttpURLConnection conn,
                      java.lang.String prefix)
               throws java.io.IOException
        Specified by:
        validate in class WalkEncryption
        Throws:
        java.io.IOException
      • decrypt

        java.io.InputStream decrypt​(java.io.InputStream input)
                             throws java.io.IOException
        Specified by:
        decrypt in class WalkEncryption
        Throws:
        java.io.IOException