Class DSMAcceleratorClientSetup
- java.lang.Object
-
- com.fortanix.sdkms.jce.provider.valentino.DSMAcceleratorClientSetup
-
public class DSMAcceleratorClientSetup extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
ensureValidSession(ISdkmsCommand command)
com.fortanix.dsm.accelerator.DSMAccelerator
getDsmAcceleratorClient()
static DSMAcceleratorClientSetup
getInstance()
com.fortanix.sdkms.v1.model.KeyObject
getSecurityObject(String kid)
Looks up a key by kid and returns the corresponding security object.com.fortanix.sdkms.v1.model.KeyObject
getSecurityObjectByName(String name)
Looks up a key by name and returns the corresponding security object.String
getServerVersion()
static DSMAcceleratorClientSetup
initialize()
boolean
isSessionValid(com.fortanix.sdkms.v1.ApiException apiException)
void
logout()
void
makeLoginRequest()
-
-
-
Method Detail
-
initialize
public static DSMAcceleratorClientSetup initialize()
-
getInstance
public static DSMAcceleratorClientSetup getInstance()
-
makeLoginRequest
public void makeLoginRequest()
-
getSecurityObject
public com.fortanix.sdkms.v1.model.KeyObject getSecurityObject(String kid) throws com.fortanix.sdkms.v1.ApiException
Looks up a key by kid and returns the corresponding security object.- Parameters:
kid
- the key id of the key to look up- Returns:
- the SObject associated with the key
- Throws:
ProviderException
- if there is an error during the key lookupcom.fortanix.sdkms.v1.ApiException
-
getSecurityObjectByName
public com.fortanix.sdkms.v1.model.KeyObject getSecurityObjectByName(String name) throws com.fortanix.sdkms.v1.ApiException
Looks up a key by name and returns the corresponding security object.- Parameters:
name
- the name of the key to look up- Returns:
- the SObject associated with the key
- Throws:
ProviderException
- if there is an error during the key lookupcom.fortanix.sdkms.v1.ApiException
-
ensureValidSession
public Object ensureValidSession(ISdkmsCommand command) throws com.fortanix.sdkms.v1.ApiException
- Throws:
com.fortanix.sdkms.v1.ApiException
-
isSessionValid
public boolean isSessionValid(com.fortanix.sdkms.v1.ApiException apiException)
-
logout
public void logout()
-
getDsmAcceleratorClient
public com.fortanix.dsm.accelerator.DSMAccelerator getDsmAcceleratorClient()
-
getServerVersion
public String getServerVersion()
-
-