Module org.refcodes.security
Package org.refcodes.security
package org.refcodes.security
This artifact provides the basic interfaces (and supporting classes) to
implement vanilla plain cryptographic algorithms (as of the
Encrypter
or
Decrypter
types) for you to experiment with
cryptography and afterwards (optionally) link your algorithms to the JCA (Java
Cryptography Architecture).
Please refer to the refcodes-security: Chaos-based encryption as Java cryptographic extension (and without) documentation for an up-to-date and detailed description on the usage of this artifact.
-
ClassDescriptionThe Enum Algorithm.Crypter<ENC,
DEC, ENCEXC extends EncryptionException, DECEXC extends DecryptionException> Decrypter<DEC,ENC, EXC extends DecryptionException> Plain interface for providing straight forward decryption functionality as ofDecrypter.toDecrypted(Object)
and for forcing your plain functionality to provide a bridge to the Java Cryptographic Extension (JCE) framework'sCipherSpi
as ofDecrypter.toDecrypted(byte[], int, int, byte[], int)
.Thrown in case an decryption issue occurred regarding theEncrypter
.Thrown in case an decryption issue occurred regarding theEncrypter
.ADecryptionInputStream
wraps anInputStream
and consumes input bytes by applying aDecrypter
on each byte read from the providedInputStream
before passing back the processed byte to the caller.Encrypter<ENC,DEC, EXC extends EncryptionException> Plain interface for providing straight forward encryption functionality as ofEncrypter.toEncrypted(Object)
and for forcing your plain functionality to provide a bridge to the Java Cryptographic Extension (JCE) framework'sCipherSpi
as ofEncrypter.toEncrypted(byte[], int, int, byte[], int)
.Thrown in case an encryption issue occurred regarding theEncrypter
.Thrown in case an encryption issue occurred regarding theEncrypter
.AEncryptionOutputStream
wraps anOutputStream
and produces output bytes by applying aEncrypter
on each byte to be written before delegating the processed vale to the givenOutputStream
.The mutableKeyStoreDescriptor.KeyStoreDescriptorBuilder
extends theKeyStoreDescriptor
with manipulator methods.Provides an accessor for aKeyStoreDescriptor
property.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>Provides a builder method for aKeyStoreDescriptor
property returning the builder for applying multiple build operations.Provides a mutator for aKeyStoreDescriptor
property.Provides aKeyStoreDescriptor
property.Implementation of theKeyStoreDescriptor
interface.The immutableKeyStoreDescriptorImpl
implements theTrustStoreDescriptor
interface.The Class SecurityException.Describes the data required to access a truststore.The mutableTrustStoreDescriptor.TrustStoreDescriptorBuilder
extends theTrustStoreDescriptor
with manipulator methods.Provides an accessor for aTrustStoreDescriptor
property.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>Provides a builder method for aTrustStoreDescriptor
property returning the builder for applying multiple build operations.Provides a mutator for aTrustStoreDescriptor
property.Provides aTrustStoreDescriptor
property.Implementation of theKeyStoreDescriptor
interface.The immutableTrustStoreDescriptorImpl
implements theTrustStoreDescriptor
interface.