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()
ServiceCredentials
getLoginId
in interface ServiceCredentials
public byte[] getLoginKey()
ServiceCredentials
getLoginKey
in interface ServiceCredentials
public HashAlgorithm getHmacAlgorithm()
ServiceCredentials
getHmacAlgorithm
in interface ServiceCredentials
Copyright © 2024 Guardtime. All rights reserved.