mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
30.27.2009 902747f3618c2ba285058670ee6d0cf57e51c34e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package org.opends.sdk.util.ssl;
 
 
 
import java.security.cert.CertificateException;
 
 
 
/**
 * The certificate's subject DN's value and the host name we tried to
 * connect to do not match.
 */
@SuppressWarnings("serial")
public class HostnameMismatchCertificateException extends
    CertificateException
{
  private String expectedHostname;
 
  private String certificateHostname;
 
 
 
  public HostnameMismatchCertificateException(String expectedHostname,
      String certificateHostname)
  {
    this.expectedHostname = expectedHostname;
    this.certificateHostname = certificateHostname;
  }
 
 
 
  public HostnameMismatchCertificateException(String msg,
      String expectedHostname, String certificateHostname)
  {
    super(msg);
    this.expectedHostname = expectedHostname;
    this.certificateHostname = certificateHostname;
  }
 
 
 
  public String getExpectedHostname()
  {
    return expectedHostname;
  }
 
 
 
  public void setExpectedHostname(String expectedHostname)
  {
    this.expectedHostname = expectedHostname;
  }
 
 
 
  public String getCertificateHostname()
  {
    return certificateHostname;
  }
 
 
 
  public void setCertificateHostname(String certificateHostname)
  {
    this.certificateHostname = certificateHostname;
  }
}