Class EncryptionProviderImpl

    • Constructor Detail

      • EncryptionProviderImpl

        public EncryptionProviderImpl​(EncryptionService aEncryptionService)
        Constructs the EncryptionProvider using AES as implemented by the BouncyCastleProvider.
        Parameters:
        aEncryptionService - The service to be used by the provider.
    • Method Detail

      • toEncrypted

        public String toEncrypted​(String aInput)
                           throws org.refcodes.security.EncryptionException
        Specified by:
        toEncrypted in interface org.refcodes.security.Encrypter<String,​String,​org.refcodes.security.EncryptionException>
        Specified by:
        toEncrypted in interface EncryptionProvider
        Throws:
        org.refcodes.security.EncryptionException
      • toEncrypted

        public int toEncrypted​(byte[] abUFFER,
                               int aOffset,
                               int aLength,
                               byte[] aOutBuffer,
                               int aOutOffset)
                        throws org.refcodes.security.EncryptionException
        Specified by:
        toEncrypted in interface org.refcodes.security.Encrypter<String,​String,​org.refcodes.security.EncryptionException>
        Throws:
        org.refcodes.security.EncryptionException
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.refcodes.mixin.Disposable