C
- the certificate type supported by the TlsTmSecurityCallback
hook provided by this transport
mapping.public interface TlsTransportMappingConfig<C extends Certificate>
TlsTransportMappingConfig
interface provides means to plug in a TlsTmSecurityCallback
into
the TransportMapping
implementation and to control other TLS specific settings.Modifier and Type | Method and Description |
---|---|
String |
getKeyStore() |
String |
getKeyStorePassword() |
String |
getProtocolVersionPropertyName()
Returns the property name that is used by this transport mapping to determine the protocol versions
from system properties.
|
String[] |
getProtocolVersions()
Return the (D)TLS protocol versions used by this transport mapping.
|
TlsTmSecurityCallback<C> |
getSecurityCallback()
Gets the
TlsTmSecurityCallback associated with this TransportMapping hook which is
called by the transport mapping to lookup TLS security parameters from external configuration. |
String |
getTrustStore() |
String |
getTrustStorePassword() |
void |
setKeyStore(String keyStore) |
void |
setKeyStorePassword(String keyStorePassword) |
void |
setLocalCertificateAlias(String localCertificateAlias)
Sets the certificate alias used for client and server authentication
by this TLSTM.
|
void |
setProtocolVersions(String[] protocolVersions)
Sets the (D)TLS protocols/versions that this
TlsTransportMappingConfig should use during handshake. |
void |
setSecurityCallback(TlsTmSecurityCallback<C> securityCallback)
Sets the
TlsTmSecurityCallback associated with this TransportMapping hook. |
void |
setTrustStore(String trustStore) |
void |
setTrustStorePassword(String trustStorePassword) |
TlsTmSecurityCallback<C> getSecurityCallback()
TlsTmSecurityCallback
associated with this TransportMapping
hook which is
called by the transport mapping to lookup TLS security parameters from external configuration.TlsTmSecurityCallback
instance.void setSecurityCallback(TlsTmSecurityCallback<C> securityCallback)
TlsTmSecurityCallback
associated with this TransportMapping
hook. This hook
will be called to lookup the security name based on the TLS peer certificate, for example.
See TlsTmSecurityCallback
for details.securityCallback
- a TlsTmSecurityCallback
instance. Setting this hook to null
will disable incoming request
processing because these request will be rejected due to an authorization error (no mathing SNMPv3 view).String getKeyStore()
void setKeyStore(String keyStore)
String getKeyStorePassword()
void setKeyStorePassword(String keyStorePassword)
String getTrustStore()
void setTrustStore(String trustStore)
String getTrustStorePassword()
void setTrustStorePassword(String trustStorePassword)
void setLocalCertificateAlias(String localCertificateAlias)
null
filters out any certificates which are not in the chain of the given
alias.localCertificateAlias
- a certificate alias which filters a single certification chain from
the javax.net.ssl.keyStore
key store to be used to
authenticate this TLS transport mapping. If null
no
filtering appears, which could lead to more than a single chain
available for authentication by the peer, which would violate the
(D)TLSTM standard requirements.void setProtocolVersions(String[] protocolVersions)
TlsTransportMappingConfig
should use during handshake.protocolVersions
- an array of (D)TLS protocol (version) names supported by the SunJSSE provider.
The order in the array defines which protocol is tried during handshake
first.String[] getProtocolVersions()
String getProtocolVersionPropertyName()
SnmpConfigurator.P_TLS_VERSION
or
SnmpConfigurator.P_DTLS_VERSION
.Copyright © 2021 SNMP4J.org. All rights reserved.