Top Description Fields Constructors Methods
org.bouncycastle.tls

public Class DTLSVerifier

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .ByteArrayOutputStream, .IOException, org.bouncycastle.tls.crypto.TlsCrypto, .TlsMAC, .TlsMACOutputStream, org.bouncycastle.util.Arrays

Implements cookie generation/verification for a DTLS server as described in RFC 4347, 4.2.1. Denial of Service Countermeasures.

RFC 4347 4.2.1 additionally recommends changing the secret frequently. This class does not handle that internally, so the instance should be replaced instead.

Field Summary

Modifier and TypeField and Description
private final TlsCrypto
private final byte[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DTLSRequest
verifyRequest(byte[] clientID, byte[] data, int dataOff, int dataLen, DatagramSender sender)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoback to summary
private final TlsCrypto crypto
macKeyback to summary
private final byte[] macKey

Constructor Detail

DTLSVerifierback to summary
public DTLSVerifier(TlsCrypto crypto)

Method Detail

verifyRequestback to summary
public DTLSRequest verifyRequest(byte[] clientID, byte[] data, int dataOff, int dataLen, DatagramSender sender)