Gs2Header, a username and a nonce. Formal syntax is:
client-first-message-bare = [reserved-mext ","] username "," nonce ["," extensions]
client-first-message = gs2-header client-first-message-bare
Note that extensions are not supported.
| Modifier and Type | Field and Description |
|---|---|
| private final Gs2Header | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ClientFirstMessage(Gs2Header
The GSS-API header gs2Header, String The SCRAM user user, String The nonce for this session nonce)Constructs a client-first-message for the given user, nonce and gs2Header. |
| public | ClientFirstMessage(Gs2CbindFlag
The channel-binding flag gs2CbindFlag, String The optional authzid authzid, String The optional channel binding name cbindName, String The SCRAM user user, String The nonce for this session nonce)Constructs a client-first-message for the given parameters. |
| public | ClientFirstMessage(String
The SCRAM user user, String The nonce for this session nonce)Constructs a client-first-message for the given parameters, with no channel binding nor authzid. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Gs2CbindFlag | |
| public String | |
| public Gs2Header | |
| public String | |
| public String | |
| private static Gs2Header | |
| public boolean | |
| public static ClientFirstMessage | Returns: The instanceThe String representing the client-first-message clientFirstMessage)Construct a |
| public String | |
| public StringBuffer | writeTo(StringBuffer
Where to write the data. sb)Implements com. |
| public StringBuffer | Returns: The same StringBufferA StringBuffer where to write the data to. sb)Limited version of the |
| gs2Header | back to summary |
|---|---|
| private final Gs2Header gs2Header | |
| nonce | back to summary |
|---|---|
| private final String nonce | |
| user | back to summary |
|---|---|
| private final String user | |
| ClientFirstMessage | back to summary |
|---|---|
| public ClientFirstMessage(Gs2Header gs2Header, String user, String nonce) throws IllegalArgumentException Constructs a client-first-message for the given user, nonce and gs2Header. This constructor is intended to be instantiated by a scram client, and not directly. The client should be providing the header, and nonce (and probably the user too).
| |
| ClientFirstMessage | back to summary |
|---|---|
| public ClientFirstMessage(Gs2CbindFlag gs2CbindFlag, String authzid, String cbindName, String user, String nonce) Constructs a client-first-message for the given parameters. Under normal operation, this constructor is intended to be instantiated by a scram client, and not directly. However, this constructor is more user- or test-friendly, as the arguments are easier to provide without building other indirect object parameters.
| |
| ClientFirstMessage | back to summary |
|---|---|
| public ClientFirstMessage(String user, String nonce) Constructs a client-first-message for the given parameters, with no channel binding nor authzid. Under normal operation, this constructor is intended to be instantiated by a scram client, and not directly. However, this constructor is more user- or test-friendly, as the arguments are easier to provide without building other indirect object parameters.
| |
| getAuthzid | back to summary |
|---|---|
| public String getAuthzid() | |
| getChannelBindingFlag | back to summary |
|---|---|
| public Gs2CbindFlag getChannelBindingFlag() | |
| getChannelBindingName | back to summary |
|---|---|
| public String getChannelBindingName() | |
| getGs2Header | back to summary |
|---|---|
| public Gs2Header getGs2Header() | |
| getNonce | back to summary |
|---|---|
| public String getNonce() | |
| getUser | back to summary |
|---|---|
| public String getUser() | |
| gs2Header | back to summary |
|---|---|
| private static Gs2Header gs2Header(Gs2CbindFlag gs2CbindFlag, String authzid, String cbindName) | |
| isChannelBinding | back to summary |
|---|---|
| public boolean isChannelBinding() | |
| parseFrom | back to summary |
|---|---|
| public static ClientFirstMessage parseFrom(String clientFirstMessage) throws ScramParseException, IllegalArgumentException Construct a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeTo | back to summary |
|---|---|
| public StringBuffer writeTo(StringBuffer sb) Implements com. Doc from com. Write the class information to the given StringBuffer.
| |
| writeToWithoutGs2Header | back to summary |
|---|---|
| public StringBuffer writeToWithoutGs2Header(StringBuffer sb) Limited version of the
| |