class X500Provider.SigningBufferFactory extends Object implements DatagramBufferFactory
Modifier and Type | Class and Description |
---|---|
private class |
X500Provider.SigningBufferFactory.BufferInfo |
Modifier and Type | Field and Description |
---|---|
private List |
buffers |
private DatagramBufferFactory |
factory |
private byte[] |
principalName |
private Signature |
signature |
Constructor and Description |
---|
X500Provider.SigningBufferFactory(DatagramBufferFactory factory,
X500PrivateCredential cred) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
newBuffer()
Returns a byte buffer into which to write encoded multicast packet data.
|
void |
sign() |
private final List buffers
private final DatagramBufferFactory factory
private final byte[] principalName
private final Signature signature
X500Provider.SigningBufferFactory(DatagramBufferFactory factory, X500PrivateCredential cred) throws InvalidKeyException, UTFDataFormatException, NoSuchAlgorithmException
public ByteBuffer newBuffer()
DatagramBufferFactory
0
corresponds to the start of packet data, and the
capacity of the buffer indicates the maximum packet size. Encoding
methods should start writing data at the initial (non-zero) position of
the buffer; the final position of the buffer after the encoding method
has returned is used to mark the end of encoded data, which translates
into the actual length of the sent packet.newBuffer
in interface DatagramBufferFactory
public void sign() throws SignatureException
SignatureException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.