Class TargetBuilder.TlsTargetBuilder
java.lang.Object
org.snmp4j.fluent.TargetBuilder.TlsTargetBuilder
- Enclosing class:
TargetBuilder<A extends Address>
- Since:
- 3.5.0
- Author:
- Frank Fock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientFingerprint(OctetString fingerprint) done()securityCallback(TlsTmSecurityCallback<X509Certificate> tlsTmSecurityCallback) serverFingerprint(OctetString fingerprint) serverIdentity(String serverIdentity) Sets the identity the server is expected to prove with its certificate, independently from the security name of the target.serverIdentity(OctetString serverIdentity) Sets the identity the server is expected to prove with its certificate, independently from the security name of the target.
-
Constructor Details
-
TlsTargetBuilder
-
-
Method Details
-
serverFingerprint
-
clientFingerprint
-
serverIdentity
Sets the identity the server is expected to prove with its certificate, independently from the security name of the target. The identity is matched against thedNSNameandiPAddresssubject alternative names of the server certificate as required by RFC 6353 ยง5.3.1, where the left-most label of adNSNamemay be a wildcard. If not set, the security name is used as expected identity.- Parameters:
serverIdentity- the host name or IP address the server certificate has to certify.- Returns:
- this
TargetBuilder<A extends Address>.TlsTargetBuilderinstance. - Since:
- 3.13.0
-
serverIdentity
Sets the identity the server is expected to prove with its certificate, independently from the security name of the target.- Parameters:
serverIdentity- the host name or IP address the server certificate has to certify.- Returns:
- this
TargetBuilder<A extends Address>.TlsTargetBuilderinstance. - Since:
- 3.13.0
- See Also:
-
securityCallback
public TargetBuilder<A>.TlsTargetBuilder securityCallback(TlsTmSecurityCallback<X509Certificate> tlsTmSecurityCallback) -
done
-