com.jniwrapper.win32.ie.event
Class SecurityProblem

java.lang.Object
  extended by com.jniwrapper.win32.ie.event.SecurityProblem

public class SecurityProblem
extends java.lang.Object

Provides information about a security problem.


Constructor Summary
SecurityProblem(long problem)
          Constructs a new SecurityProblem instance according to the input problem flag value.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isAuthenticationRequired()
          The server is requesting client authentication.
 boolean isConfirmationRequired()
          The redirection requires user confirmation.
 boolean isInvalidCertificate()
          Indicates that the function is unfamiliar with the Certificate Authority that generated the server's certificate.
 boolean isInvalidCertificateDate()
          Indicates that SSL certificate date that was received from the server is bad.
 boolean isInvalidCertificateName()
          Indicates that SSL certificate common name (host name field) is incorrect.
 boolean isMovingFromHttpsToHttp()
          Indicates that the application is moving from an SSL to an non-SSL connection because of a redirect.
 boolean isMovingFromHttpToHttps()
          Indicates that the application is moving from a non-SSL to an SSL connection because of a redirect.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityProblem

public SecurityProblem(long problem)
Constructs a new SecurityProblem instance according to the input problem flag value.

Parameters:
problem - a flag value that describes a problem type. Should be one of the following values:
  • InternetError.ERROR_INTERNET_INVALID_CA
  • InternetError.ERROR_INTERNET_SEC_CERT_CN_INVALID
  • InternetError.ERROR_INTERNET_SEC_CERT_DATE_INVALID
  • InternetError.ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
  • InternetError.ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
  • InternetError.ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION
  • InternetError.ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED
Method Detail

isInvalidCertificate

public boolean isInvalidCertificate()
Indicates that the function is unfamiliar with the Certificate Authority that generated the server's certificate.

Returns:
true if a certificate is invalid.

isInvalidCertificateName

public boolean isInvalidCertificateName()
Indicates that SSL certificate common name (host name field) is incorrect. For example, if you entered www.server.com and the common name on the certificate says www.different.com.

Returns:
true if a certificate name is invalid.

isInvalidCertificateDate

public boolean isInvalidCertificateDate()
Indicates that SSL certificate date that was received from the server is bad. The certificate is expired.

Returns:
true if a certificate date is expired.

isMovingFromHttpToHttps

public boolean isMovingFromHttpToHttps()
Indicates that the application is moving from a non-SSL to an SSL connection because of a redirect.

Returns:
true if application is moving from a non-SSL to an SSL connection because of a redirect.

isMovingFromHttpsToHttp

public boolean isMovingFromHttpsToHttp()
Indicates that the application is moving from an SSL to an non-SSL connection because of a redirect.

Returns:
true if application is moving from an SSL to an non-SSL connection because of a redirect.

isConfirmationRequired

public boolean isConfirmationRequired()
The redirection requires user confirmation.

Returns:
true if redirection requires user confirmation.

isAuthenticationRequired

public boolean isAuthenticationRequired()
The server is requesting client authentication.

Returns:
true if server is requesting client authentication.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object