public class PublicKeyCredentials extends Credentials
Credentials.HasLanguage, Credentials.HasMachineIdentStreamable.Closure| Constructor and Description |
|---|
PublicKeyCredentials()
No-arg constructor.
|
PublicKeyCredentials(PublicKey key)
Create a public key credential.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDatagramSecret()
Returns a string to use in a hash on the datagram contents to authenticate client datagrams.
|
byte[] |
getSecret()
Returns the secret.
|
byte[] |
getSecret(PrivateKey key)
Decodes the secret.
|
int |
getSecureVersion()
Returns the secure version the client is using.
|
public PublicKeyCredentials()
public PublicKeyCredentials(PublicKey key)
public int getSecureVersion()
public byte[] getSecret()
public byte[] getSecret(PrivateKey key)
public String getDatagramSecret()
CredentialsgetDatagramSecret in class CredentialsCopyright © 2015. All rights reserved.