Module org.refcodes.forwardsecrecy
Package edu.vt.middleware.crypt.util
Class AbstractEncodingConverter
java.lang.Object
edu.vt.middleware.crypt.util.AbstractEncodingConverter
- All Implemented Interfaces:
Converter
- Direct Known Subclasses:
Base64Converter
,HexConverter
Abstract base class for all converters that perform encoding with a BC
Encoder
class.- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromBytes
(byte[] input) Converts a byte array to a formatted/encoded string.fromBytes
(byte[] input, int offset, int length) Converts a byte array to a formatted/encoded string.protected abstract org.bouncycastle.util.encoders.Encoder
Gets the encoder instance that does the work of byte-char/char-byte encoding.byte[]
Converts a formatted/encoded string to raw bytes.
-
Constructor Details
-
AbstractEncodingConverter
public AbstractEncodingConverter()
-
-
Method Details
-
fromBytes
Converts a byte array to a formatted/encoded string. -
fromBytes
Converts a byte array to a formatted/encoded string. -
toBytes
Converts a formatted/encoded string to raw bytes. -
getEncoder
protected abstract org.bouncycastle.util.encoders.Encoder getEncoder()Gets the encoder instance that does the work of byte-char/char-byte encoding.- Returns:
- Encoder instance.
-