public class KSIServiceCredentials extends Object implements ServiceCredentials
| Constructor and Description |
|---|
KSIServiceCredentials(String loginId,
byte[] loginKey)
Creates service credentials.
|
KSIServiceCredentials(String loginId,
byte[] loginKey,
HashAlgorithm hmacAlgorithm)
Creates service credentials.
|
KSIServiceCredentials(String loginId,
String loginKey)
Creates service credentials.
|
KSIServiceCredentials(String loginId,
String loginKey,
HashAlgorithm hmacAlgorithm)
Creates service credentials.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
HashAlgorithm |
getHmacAlgorithm()
Gets the algorithm for verifying the HMAC of incoming messages.
|
String |
getLoginId()
Gets KSI service login ID.
|
byte[] |
getLoginKey()
Gets KSI login key.
|
public KSIServiceCredentials(String loginId, String loginKey)
loginId - login ID.loginKey - login key.public KSIServiceCredentials(String loginId, String loginKey, HashAlgorithm hmacAlgorithm)
loginId - login ID.loginKey - login key.hmacAlgorithm - HMAC algorithm of incoming messages.public KSIServiceCredentials(String loginId, byte[] loginKey)
loginId - login ID.loginKey - login key.public KSIServiceCredentials(String loginId, byte[] loginKey, HashAlgorithm hmacAlgorithm)
loginId - login ID.loginKey - login key.hmacAlgorithm - HMAC algorithm of incoming messages.public String getLoginId()
ServiceCredentialsgetLoginId in interface ServiceCredentialspublic byte[] getLoginKey()
ServiceCredentialsgetLoginKey in interface ServiceCredentialspublic HashAlgorithm getHmacAlgorithm()
ServiceCredentialsgetHmacAlgorithm in interface ServiceCredentialsCopyright © 2024 Guardtime. All rights reserved.