Class DESPrivateKeyObfuscator

    • Field Detail

      • AVAILABLE_KEY_LENGTHS

        public static final java.util.List<java.lang.Integer> AVAILABLE_KEY_LENGTHS
    • Constructor Detail

      • DESPrivateKeyObfuscator

        public DESPrivateKeyObfuscator()
    • Method Detail

      • applyPrivateKeyCipher

        public byte[] applyPrivateKeyCipher​(byte[] bytes,
                                            PrivateKeyEncryptionContext encContext,
                                            boolean encryptIt)
                                     throws java.security.GeneralSecurityException,
                                            java.io.IOException
        Parameters:
        bytes - Original bytes
        encContext - The encryption context
        encryptIt - If true then encrypt the original bytes, otherwise decrypt them
        Returns:
        The result of applying the cipher to the original bytes
        Throws:
        java.security.GeneralSecurityException - If cannot encrypt/decrypt
        java.io.IOException - If malformed input
      • getSupportedKeySizes

        public java.util.List<java.lang.Integer> getSupportedKeySizes()
        Returns:
        A List of the supported key sizes - Note: every call returns a and un-modifiable instance.