|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.digest.StandardDigestEnvironment
public class StandardDigestEnvironment
The standard implementation for IDigestEnvironment.
| Constructor Summary | |
|---|---|
StandardDigestEnvironment()
|
|
| Method Summary | |
|---|---|
IDigest |
createDigest(String algorithmName,
byte[] bytes)
An IDigest object from an algorithm name and the raw bytes. |
IDigester |
createDigester(String algorithmName)
An IDigester for the given "algorithmName". |
IDigest |
decode(byte[] bytes)
Decode an DER encoded representation to an IDigest. |
byte[] |
encode(IDigest digest)
Encode an IDigest to a DER representation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardDigestEnvironment()
| Method Detail |
|---|
public IDigest createDigest(String algorithmName,
byte[] bytes)
IDigestEnvironmentIDigest object from an algorithm name and the raw bytes.
createDigest in interface IDigestEnvironmentIDigest object from an algorithm name and the raw
bytes.
public IDigester createDigester(String algorithmName)
throws NoSuchAlgorithmException
IDigestEnvironmentIDigester for the given "algorithmName".
createDigester in interface IDigestEnvironmentIDigester for the given "algorithmName".
NoSuchAlgorithmException
public IDigest decode(byte[] bytes)
throws IOException
IDigestEnvironmentIDigest.
decode in interface IDigestEnvironmentIDigest
IOException - If no decoder installed or "bytes" are not a correct encoded
DER representation.
public byte[] encode(IDigest digest)
throws IOException
IDigestEnvironmentIDigest to a DER representation.
encode in interface IDigestEnvironmentIOException - If no decoder installed.
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||