public class PskSecretResult extends HandshakeResult
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_MAC |
static String |
ALGORITHM_PSK |
| Constructor and Description |
|---|
PskSecretResult(ConnectionId cid,
PskPublicInformation pskIdentity,
SecretKey secret)
Create result.
|
PskSecretResult(ConnectionId cid,
PskPublicInformation pskIdentity,
SecretKey secret,
Object customArgument)
Create result with custom argument for
AdvancedApplicationLevelInfoSupplier. |
| Modifier and Type | Method and Description |
|---|---|
PskPublicInformation |
getPskPublicInformation()
Get PSK identity.
|
SecretKey |
getSecret()
Get master secret (algorithm "MAC"), or PSK secret key (algorithm "PSK").
|
getConnectionId, getCustomArgumentpublic static final String ALGORITHM_PSK
public static final String ALGORITHM_MAC
public PskSecretResult(ConnectionId cid, PskPublicInformation pskIdentity, SecretKey secret)
cid - connection idpskIdentity - PSK identitysecret - secret, null, if generation failed. Algorithm must
be "MAC" or "PSK".IllegalArgumentException - if algorithm is neither "MAC" nor "PSK"NullPointerException - if cid or pskIdentity is nullpublic PskSecretResult(ConnectionId cid, PskPublicInformation pskIdentity, SecretKey secret, Object customArgument)
AdvancedApplicationLevelInfoSupplier.cid - connection idpskIdentity - PSK identitysecret - secret, null, if generation failed. Algorithm must
be "MAC" or "PSK".customArgument - custom argument. May be null. Passed to
AdvancedApplicationLevelInfoSupplier by the
Handshaker, if a
AdvancedApplicationLevelInfoSupplier is available.IllegalArgumentException - if algorithm is neither "MAC" nor "PSK"NullPointerException - if cid or pskIdentity is nullpublic PskPublicInformation getPskPublicInformation()
public SecretKey getSecret()
null, if not available.Copyright © 2023 Eclipse Foundation. All rights reserved.