|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.util.AbstractEncodingConverter
public abstract class AbstractEncodingConverter
Abstract base class for all converters that perform encoding with a BC Encoder class.
| Constructor Summary | |
|---|---|
AbstractEncodingConverter()
|
|
| Method Summary | |
|---|---|
String |
fromBytes(byte[] input)
Converts a byte array to a formatted/encoded string. |
String |
fromBytes(byte[] input,
int offset,
int length)
Converts a byte array to a formatted/encoded string. |
protected abstract org.bouncycastle.util.encoders.Encoder |
getEncoder()
Gets the encoder instance that does the work of byte-char/char-byte encoding. |
byte[] |
toBytes(String input)
Converts a formatted/encoded string to raw bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEncodingConverter()
| Method Detail |
|---|
public String fromBytes(byte[] input)
fromBytes in interface Converterinput - Input bytes.
public String fromBytes(byte[] input,
int offset,
int length)
fromBytes in interface Converterinput - Input bytes.offset - Offset into input bytes at which to begin processing.length - Number of bytes of input data to process.
public byte[] toBytes(String input)
toBytes in interface Converterinput - Formatted/encoded input string.
protected abstract org.bouncycastle.util.encoders.Encoder getEncoder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||