java.lang.Object | |
↳ | sun.security.util.HostnameChecker |
Class to check hostnames against the names specified in a certificate as required for TLS and LDAP.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
byte | TYPE_LDAP | ||||||||||
byte | TYPE_TLS |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get a HostnameChecker instance.
| |||||||||||
Return the Server name from Kerberos principal.
| |||||||||||
Return the subject of a certificate as X500Name, by reparsing if
necessary.
| |||||||||||
Perform the check.
| |||||||||||
Perform the check for Kerberos.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Get a HostnameChecker instance. checkType should be one of the TYPE_* constants defined in this class.
Return the Server name from Kerberos principal.
Return the subject of a certificate as X500Name, by reparsing if necessary. X500Name should only be used if access to name components is required, in other cases X500Principal is to be prefered. This method is currently used from within JSSE, do not remove.
CertificateParsingException |
---|
Perform the check.
CertificateException | if the name does not match any of the names specified in the certificate |
---|
Perform the check for Kerberos.