# derby.drda.securityMechanism

The derby.drda.securityMechanism property restricts the client connections based on the security mechanism.

If the derby.drda.securityMechanism property is set to a valid mechanism, the Network Server accepts only connections which use that security mechanism. No other types of connections are accepted. If the derby.drda.securityMechanism property is not set, the Network Server accepts any connection which uses a valid security mechanism.

#### Syntax

    derby.drda.securityMechanism = [
        USER_ONLY_SECURITY |
        CLEAR_TEXT_PASSWORD_SECURITY |
        ENCRYPTED_USER_AND_PASSWORD_SECURITY |
        STRONG_PASSWORD_SUBSTITUTE_SECURITY
    ]

#### Default

None.

#### Example

    derby.drda.securityMechanism=USER_ONLY_SECURITY

The server that runs with this setting accepts only client connections with the USER_ONLY_SECURITY value.

#### Static or dynamic

Static. You must restart the Network Server for the changes that are associated with this property to take effect.

Parent topic: Setting Network Server properties
Related reference
derby.drda.host
derby.drda.keepAlive
derby.drda.logConnections
derby.drda.maxThreads
derby.drda.minThreads
derby.drda.portNumber
derby.drda.startNetworkServer
derby.drda.streamOutBufferSize
derby.drda.timeslice
derby.drda.traceAll
derby.drda.traceDirectory