public interface SecurityInformation
Modifier and Type | Interface and Description |
---|---|
static class |
SecurityInformation.AuthenticationAdaptorType
The type of authentication used to access Oracle Database
|
static class |
SecurityInformation.DNMatchStatus
The status of server DN matching used for TLS connections.
|
Modifier and Type | Method and Description |
---|---|
SecurityInformation.AuthenticationAdaptorType |
getAuthenticationAdaptor()
Returns the type of the authentication mechanism used for authenticating
the user to the Oracle Database Server.
|
String |
getChecksumLevel()
Returns the checksumming level configured to negotiate Native Network
Encryption with the server.
|
String |
getChecksummingAlgorithm()
Returns the checksumming algorithm name used for protecting the data
packets transferred over the network with Native Network Encryption.
|
SecurityInformation.DNMatchStatus |
getDNMatchStatus()
After connection establishment, calling this method returns the server DN
verification status.
|
String |
getEncryptionAlgorithm()
Returns the encryption algorithm which is used for encrypting the data
packets transferred over the network with Native Network Encryption.
|
String |
getEncryptionLevel()
Returns the encryption level configured to negotiate Native Network
Encryption with the server.
|
String |
getServerDN()
Returns the DN received from the TLS certificate of the server.
|
String |
getTLSCipherSuite()
Returns the name of the
CipherSuite used for securing the underlying
TCPS connection. |
String |
getTLSVersion()
Returns the TLS version negotiated with the server.
|
boolean |
isNativeEncryptionEnabled()
Returns true if the underlying network connection is protected by Native Network
Encryption, otherwise returns false.
|
boolean |
isStrongCryptoUsed()
Returns true if strong key and IV are used to protect the data packets
transferred over the network with Native Network Encryption.
|
SecurityInformation.DNMatchStatus getDNMatchStatus()
After connection establishment, calling this method returns the server DN
verification status. Returns null
if underlying protocol
does not support DN verification.
If DN is configured (through SSL_SERVER_CERT_DN
), then
the DN of the server's certificate must match the configured DN for the
connection to be successful. In this
case DNMatchStatus.VERIFIED_MATCHING_CONFIG
is returned.
If DN is not configured, standard DN verification will occur if the EZConnect+
URL format is used or if the property
OracleConnection.CONNECTION_PROPERTY_THIN_SSL_SERVER_DN_MATCH
is set to true
or if SSL_SERVER_DN_MATCH
is set
to TRUE
in the URL. If no DN verification is done then
this method will return DNMatchStatus.NOT_VERIFIED
.
Standard DN verification is done using the host name or service name specified in the URL in the following order:
DNMatchStatus.VERIFIED_MATCHING_HOSTNAME
is returned.
DNMatchStatus.VERIFIED_MATCHING_SERVICENAME
is returned.
OracleConnection.CONNECTION_PROPERTY_THIN_SSL_SERVER_CERT_DN
,
OracleConnection.CONNECTION_PROPERTY_THIN_SSL_SERVER_DN_MATCH
String getServerDN()
null
if TLS is not enabled.String getTLSCipherSuite()
CipherSuite
used for securing the underlying
TCPS
connection.null
if TLS is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_SSL_CIPHER_SUITES
String getTLSVersion()
null
if TLS is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_SSL_VERSION
boolean isNativeEncryptionEnabled()
true
if Native Network Encryption is enabled, otherwise
false
String getEncryptionAlgorithm()
null
if Native Network
Encryption is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES
String getChecksummingAlgorithm()
null
if Native Network
Encryption is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES
String getEncryptionLevel()
ACCEPTED
.null
if Native Network
Encryption is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL
String getChecksumLevel()
ACCEPTED
.null
if Native Network
Encryption is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL
boolean isStrongCryptoUsed()
true
if strong crypto is enabled, or false
if it
is disabled or if Native Network Encryption is not enabled.OracleConnection.CONNECTION_PROPERTY_THIN_NET_ALLOW_WEAK_CRYPTO
SecurityInformation.AuthenticationAdaptorType getAuthenticationAdaptor()
SecurityInformation.AuthenticationAdaptorType.O5LOGON
.