FileDocCategorySizeDatePackage
Finished.javaAPI DocAndroid 1.5 API2179Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

Finished

public class Finished extends org.apache.harmony.xnet.provider.jsse.Message
Represents Finished message
see
TLS 1.0 spec., 7.4.9. Finished

Fields Summary
private byte[]
data
Constructors Summary
public Finished(byte[] bytes)
Creates outbound message

param
bytes

        data = bytes;
        length = data.length;
    
public Finished(HandshakeIODataStream in, int length)
Creates inbound message

param
in
param
length
throws
IOException

        if (length == 12 || length == 36) {
            data = in.read(length);
            length = data.length;
        } else {
            fatalAlert(AlertProtocol.DECODE_ERROR, "DECODE ERROR: incorrect Finished");
        }
    
Methods Summary
public byte[]getData()
Returns verify data

return

        return data;
    
public intgetType()
Returns message type

return

        return Handshake.FINISHED;
    
public voidsend(HandshakeIODataStream out)

        out.write(data);