Class DSMAcceleratorClientSetup


  • public class DSMAcceleratorClientSetup
    extends Object
    • Method Detail

      • 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 lookup
        com.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 lookup
        com.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()