Package com.microsoft.sqlserver.jdbc
Class SQLServerVSMEnclaveProvider
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerVSMEnclaveProvider
-
- All Implemented Interfaces:
ISQLServerEnclaveProvider
public class SQLServerVSMEnclaveProvider extends java.lang.Object implements ISQLServerEnclaveProvider
Provides the implementation of the VSM Enclave Provider. The enclave provider encapsulates the client-side implementation details of the enclave attestation protocol.
-
-
Field Summary
-
Fields inherited from interface com.microsoft.sqlserver.jdbc.ISQLServerEnclaveProvider
SDPE1, SDPE2
-
-
Constructor Summary
Constructors Constructor Description SQLServerVSMEnclaveProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<byte[]>
createEnclaveSession(SQLServerConnection connection, java.lang.String userSql, java.lang.String preparedTypeDefinitions, com.microsoft.sqlserver.jdbc.Parameter[] params, java.util.ArrayList<java.lang.String> parameterNames)
Creates the enclave sessionvoid
getAttestationParameters(java.lang.String url)
Returns the attestation parameterscom.microsoft.sqlserver.jdbc.EnclaveSession
getEnclaveSession()
Returns the enclave sessionvoid
invalidateEnclaveSession()
Invalidates an enclave session-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.sqlserver.jdbc.ISQLServerEnclaveProvider
executeSDPEv1, executeSDPEv2, getEnclavePackage, processSDPEv1
-
-
-
-
Method Detail
-
getAttestationParameters
public void getAttestationParameters(java.lang.String url) throws SQLServerException
Description copied from interface:ISQLServerEnclaveProvider
Returns the attestation parameters- Specified by:
getAttestationParameters
in interfaceISQLServerEnclaveProvider
- Parameters:
url
- attestation url- Throws:
SQLServerException
- when an error occurs.
-
createEnclaveSession
public java.util.ArrayList<byte[]> createEnclaveSession(SQLServerConnection connection, java.lang.String userSql, java.lang.String preparedTypeDefinitions, com.microsoft.sqlserver.jdbc.Parameter[] params, java.util.ArrayList<java.lang.String> parameterNames) throws SQLServerException
Description copied from interface:ISQLServerEnclaveProvider
Creates the enclave session- Specified by:
createEnclaveSession
in interfaceISQLServerEnclaveProvider
- Parameters:
connection
- connectionuserSql
- user sqlpreparedTypeDefinitions
- preparedTypeDefinitionsparams
- paramsparameterNames
- parameterNames- Returns:
- list of enclave requested CEKs
- Throws:
SQLServerException
- when an error occurs.
-
invalidateEnclaveSession
public void invalidateEnclaveSession()
Description copied from interface:ISQLServerEnclaveProvider
Invalidates an enclave session- Specified by:
invalidateEnclaveSession
in interfaceISQLServerEnclaveProvider
-
getEnclaveSession
public com.microsoft.sqlserver.jdbc.EnclaveSession getEnclaveSession()
Description copied from interface:ISQLServerEnclaveProvider
Returns the enclave session- Specified by:
getEnclaveSession
in interfaceISQLServerEnclaveProvider
- Returns:
- the enclave session
-
-