gnu.crypto.keyring
public final class AuthenticatedEntry extends MaskableEnvelopeEntry implements Registry
| Field Summary | |
|---|---|
| static int | TYPE |
| Constructor Summary | |
|---|---|
| AuthenticatedEntry(String mac, int macLen, Properties properties) | |
| Method Summary | |
|---|---|
| void | authenticate(byte[] key)
Computes the mac over this envelope's data. |
| static AuthenticatedEntry | decode(DataInputStream in) |
| protected void | encodePayload() |
| void | verify(byte[] key)
Verifies this entry's payload. |
Parameters: key The key to authenticate with.
Throws: IOException If encoding fails. InvalidKeyException If the supplied key is bad.
Parameters: key The key to use to authenticate.
Throws: InvalidKeyException If the given key is improper.