public class SSLDNAuthenticator extends Object implements SSLAuthenticator
| Constructor and Description |
|---|
SSLDNAuthenticator(InstanceParams params)
Construct an SSLDNAuthenticator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrusted(SSLSession sslSession) |
boolean |
peerMatches(SSLSession sslSession) |
static void |
validate(String regex)
Verify that the string is a valid pattern.
|
public SSLDNAuthenticator(InstanceParams params)
params - The parameter for authentication creation. This class
requires a Java regular expression to be applied to the subject
common name.public boolean isTrusted(SSLSession sslSession)
isTrusted in interface SSLAuthenticatorpublic static void validate(String regex) throws IllegalArgumentException
IllegalArgumentException - if not a valid pattern.public boolean peerMatches(SSLSession sslSession)
Copyright © 2024. All rights reserved.