public final class OKVConnection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME |
static java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
OKVConnection(OKVPrimitiveConnection inPrimitiveConnection)
Injects this object with an OKVPrimitiveConnection object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection by using the injected OKVPrimitiveConnection
object.
|
OKVPrimitiveConnection |
getPrimitiveConnection() |
boolean |
isClosed()
Checks if the connection is closed.
|
byte[] |
okvConnSendRecvBytes(byte[] bytes)
API sends and receives a byte array to and from the Oracle Key
Vault server by using the injected OKVPrimitiveConnection object.
|
void |
open()
Opens a connection by using the injected OKVPrimitiveConnection object.
|
byte[] |
recv()
Receives a byte array from the Oracle Key Vault server by using the
injected OKVPrimitiveConnection object.
|
void |
send(byte[] bytes)
Sends a byte array to the Oracle Key Vault server by using the
injected OKVPrimitiveConnection object.
|
void |
setAutoManage(boolean autoConnect)
When set to true, OKVConnection opens the connection each time a byte
array is sent and closes the connection each time a byte array is
received.
|
void |
setPrimitiveConnection(OKVPrimitiveConnection sslConnection) |
public static final java.lang.String CLASS_NAME
public static final java.util.logging.Logger logger
public OKVConnection(OKVPrimitiveConnection inPrimitiveConnection)
inPrimitiveConnection - the primitive connection objectpublic byte[] okvConnSendRecvBytes(byte[] bytes)
throws OKVConnectionException
bytes - bytes to be sentOKVConnectionExceptionpublic void send(byte[] bytes)
throws java.io.IOException,
OKVConnectionException
bytes - bytes to be sentjava.io.IOExceptionOKVConnectionExceptionpublic byte[] recv()
throws java.io.IOException,
OKVConnectionException
java.io.IOExceptionOKVConnectionExceptionpublic void open()
throws OKVConnectionException
OKVConnectionExceptionpublic boolean isClosed()
public void close()
throws OKVConnectionException
OKVConnectionExceptionpublic OKVPrimitiveConnection getPrimitiveConnection()
public void setPrimitiveConnection(OKVPrimitiveConnection sslConnection)
public void setAutoManage(boolean autoConnect)
autoConnect - set to true if client wants the connection to be
automatically managed (opened immediately before a send and
immediately after a receive)