public class ClientFinalMessage extends java.lang.Object implements StringWritable
client-final-message-without-proof = channel-binding "," nonce ["," extensions]
client-final-message = client-final-message-without-proof "," proof
Note that extensions are not supported.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
cbind |
private java.lang.String |
nonce |
private byte[] |
proof |
| Constructor and Description |
|---|
ClientFinalMessage(Gs2Header gs2Header,
java.util.Optional<byte[]> cbindData,
java.lang.String nonce,
byte[] proof)
Constructus a client-final-message with the provided gs2Header (the same one used in the client-first-message),
optionally the channel binding data, and the nonce.
|
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String |
generateCBind(Gs2Header gs2Header,
java.util.Optional<byte[]> cbindData) |
java.lang.String |
toString() |
java.lang.StringBuffer |
writeTo(java.lang.StringBuffer sb)
Write the class information to the given StringBuffer.
|
static java.lang.StringBuffer |
writeToWithoutProof(Gs2Header gs2Header,
java.util.Optional<byte[]> cbindData,
java.lang.String nonce)
Returns a StringBuffer filled in with the formatted output of a client-first-message without the proof value.
|
private static java.lang.StringBuffer |
writeToWithoutProof(java.lang.StringBuffer sb,
Gs2Header gs2Header,
java.util.Optional<byte[]> cbindData,
java.lang.String nonce) |
private static java.lang.StringBuffer |
writeToWithoutProof(java.lang.StringBuffer sb,
java.lang.String cbind,
java.lang.String nonce) |
private final java.lang.String cbind
private final java.lang.String nonce
private final byte[] proof
public ClientFinalMessage(Gs2Header gs2Header, java.util.Optional<byte[]> cbindData, java.lang.String nonce, byte[] proof)
gs2Header - The GSS-API headercbindData - If using channel binding, the channel binding datanonce - The nonceproof - The bytes representing the computed client proofprivate static java.lang.String generateCBind(Gs2Header gs2Header, java.util.Optional<byte[]> cbindData)
private static java.lang.StringBuffer writeToWithoutProof(java.lang.StringBuffer sb,
java.lang.String cbind,
java.lang.String nonce)
private static java.lang.StringBuffer writeToWithoutProof(java.lang.StringBuffer sb,
Gs2Header gs2Header,
java.util.Optional<byte[]> cbindData,
java.lang.String nonce)
public static java.lang.StringBuffer writeToWithoutProof(Gs2Header gs2Header, java.util.Optional<byte[]> cbindData, java.lang.String nonce)
gs2Header - The GSS-API headercbindData - The optional channel binding datanonce - The noncepublic java.lang.StringBuffer writeTo(java.lang.StringBuffer sb)
StringWritablewriteTo in interface StringWritablesb - Where to write the data.public java.lang.String toString()
toString in class java.lang.Object