Class PrivateKeyMemoryStorage
- java.lang.Object
-
- com.fifa.connectservicebus.sdk.encryption.PrivateKeyMemoryStorage
-
- All Implemented Interfaces:
PrivateKeyStorage
public class PrivateKeyMemoryStorage extends Object implements PrivateKeyStorage
-
-
Constructor Summary
Constructors Constructor Description PrivateKeyMemoryStorage(PrivateKey privateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewKey(PrivateKey privateKey)Allows to add new private keyPrivateKeygetLatestKey()Returns recent private keyCollection<PrivateKey>getPreviousKeys()Returns previous private keys that were used in the past
-
-
-
Constructor Detail
-
PrivateKeyMemoryStorage
public PrivateKeyMemoryStorage(PrivateKey privateKey)
-
-
Method Detail
-
getLatestKey
public PrivateKey getLatestKey()
Returns recent private key- Specified by:
getLatestKeyin interfacePrivateKeyStorage- Returns:
-
getPreviousKeys
public Collection<PrivateKey> getPreviousKeys()
Returns previous private keys that were used in the past- Specified by:
getPreviousKeysin interfacePrivateKeyStorage- Returns:
-
addNewKey
public void addNewKey(PrivateKey privateKey)
Allows to add new private key
-
-