public static final class DOFCredentials.Key
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DOFCredentials |
create(DOFObjectID.Authentication identity,
byte[] key)
Construct Key credentials from an objectID and key.
|
static DOFCredentials |
create(DOFObjectID.Domain domainID,
DOFObjectID.Authentication identity,
byte[] key)
Construct Key credentials from an authentication domain, objectID and key.
|
public static DOFCredentials create(DOFObjectID.Domain domainID, DOFObjectID.Authentication identity, byte[] key)
domainID
- The authentication domain identifier. This may be BROADCAST, in which case the server will choose a
domain. This must not be null.identity
- The authentication identity. This must not be null.key
- The authentication 32 byte key. This must be 32 bytes and not null.public static DOFCredentials create(DOFObjectID.Authentication identity, byte[] key)
identity
- The authentication identity. This must not be null.key
- The authentication 32 byte key. This must be 32 bytes and not null.