Deprecated
This abstraction is deprecated because it does not work with TLS 1.3.
PSKKeyManager adaptor for objects which expose all the methods of the
PSKKeyManager interface but do not implement the interface.
This is expected to be useful on platforms where there are multiple instances of the
PSKKeyManager interface.
Visible for testing only.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | chooseClientKeyIdentity(String
identity hint provided by the server or identityHint, Socket socket)null if none provided.Implements org. |
| public String | chooseClientKeyIdentity(String
identity hint provided by the server or identityHint, SSLEngine engine)null if none provided.Implements org. |
| public String | chooseServerKeyIdentityHint(Socket socket)
Implements org. |
| public String | chooseServerKeyIdentityHint(SSLEngine engine)
Implements org. |
| pack-priv static DuckTypedPSKKeyManager | getInstance(Object obj)
Deprecated
as a consequence of
Gets an instance of DuckTypedPSKKeyManager being deprecated.
DuckTypedPSKKeyManager which delegates all invocations of methods
of the PSKKeyManager interface to the same methods of the provided object.
|
| public SecretKey | getKey(String
identity hint provided by the server to help select the key or
identityHint, String null if none provided.identity provided by the client to help select the key. identity, Socket socket)Implements org. |
| public SecretKey | getKey(String
identity hint provided by the server to help select the key or
identityHint, String null if none provided.identity provided by the client to help select the key. identity, SSLEngine engine)Implements org. |
| mDelegate | back to summary |
|---|---|
| private final Object mDelegate | |
| DuckTypedPSKKeyManager | back to summary |
|---|---|
| private DuckTypedPSKKeyManager(Object delegate) | |
| chooseClientKeyIdentity | back to summary |
|---|---|
| public String chooseClientKeyIdentity(String identityHint, Socket socket) Implements org. Doc from org. Gets the PSK identity to report to the server to help agree on the PSK for the provided socket. | |
| chooseClientKeyIdentity | back to summary |
|---|---|
| public String chooseClientKeyIdentity(String identityHint, SSLEngine engine) Implements org. Doc from org. Gets the PSK identity to report to the server to help agree on the PSK for the provided engine. | |
| chooseServerKeyIdentityHint | back to summary |
|---|---|
| public String chooseServerKeyIdentityHint(Socket socket) Implements org. Doc from org. Gets the PSK identity hint to report to the client to help agree on the PSK for the provided socket. | |
| chooseServerKeyIdentityHint | back to summary |
|---|---|
| public String chooseServerKeyIdentityHint(SSLEngine engine) Implements org. Doc from org. Gets the PSK identity hint to report to the client to help agree on the PSK for the provided engine. | |
| getInstance | back to summary |
|---|---|
| pack-priv static DuckTypedPSKKeyManager getInstance(Object obj) throws NoSuchMethodException
Deprecated as a consequence of Gets an instance of
| |
| getKey | back to summary |
|---|---|
| public SecretKey getKey(String identityHint, String identity, Socket socket) Implements org. Doc from org. Gets the PSK to use for the provided socket.
| |
| getKey | back to summary |
|---|---|
| public SecretKey getKey(String identityHint, String identity, SSLEngine engine) Implements org. Doc from org. Gets the PSK to use for the provided engine.
| |