Class TransportCipher


  • public class TransportCipher
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TransportCipher​(java.lang.String algorithm, int mode, javax.crypto.spec.SecretKeySpec key_spec)  
      TransportCipher​(java.lang.String algorithm, int mode, javax.crypto.spec.SecretKeySpec key_spec, java.security.spec.AlgorithmParameterSpec params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      protected byte[] update​(byte[] data)  
      protected byte[] update​(byte[] data, int offset, int length)  
      protected void update​(java.nio.ByteBuffer source_buffer, java.nio.ByteBuffer target_buffer)  
      • Methods inherited from class java.lang.Object

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

      • internal_rc4

        private static boolean internal_rc4
      • cipher

        private javax.crypto.Cipher cipher
    • Constructor Detail

      • TransportCipher

        public TransportCipher​(java.lang.String algorithm,
                               int mode,
                               javax.crypto.spec.SecretKeySpec key_spec,
                               java.security.spec.AlgorithmParameterSpec params)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • TransportCipher

        TransportCipher​(java.lang.String algorithm,
                        int mode,
                        javax.crypto.spec.SecretKeySpec key_spec)
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • update

        protected byte[] update​(byte[] data)
      • update

        protected byte[] update​(byte[] data,
                                int offset,
                                int length)
      • update

        protected void update​(java.nio.ByteBuffer source_buffer,
                              java.nio.ByteBuffer target_buffer)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()