com.teamdev.jxbrowser.event
Class SecurityEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.teamdev.jxbrowser.event.WebBrowserEvent
          extended by com.teamdev.jxbrowser.event.RequestEvent
              extended by com.teamdev.jxbrowser.event.SecurityEvent
All Implemented Interfaces:
java.io.Serializable

public class SecurityEvent
extends RequestEvent

Indicates that security status has changed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.teamdev.jxbrowser.event.RequestEvent
_request
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SecurityEvent(WebBrowser source, org.mozilla.interfaces.nsIWebProgress webProgress, org.mozilla.interfaces.nsIRequest request, long state)
           
 
Method Summary
 long getState()
          Returns a value composed of the Security State Flags and the Security Strength Flags.
 boolean isBroken()
          This flag indicates an unknown security state.
 boolean isInsecure()
          This flag indicates that the data corresponding to the request was received over an insecure channel.
 boolean isSecure()
          This flag indicates that the data corresponding to the request was received over a secure channel.
 boolean isSecureHigh()
          This flag indicates a high degree of security
 boolean isSecureLow()
          This flag indicates a low degree of security
 boolean isSecureMed()
          This flag indicates a medium degree of security
 java.lang.String toString()
           
 
Methods inherited from class com.teamdev.jxbrowser.event.RequestEvent
getRequestUrlName, isLoadBackground, isLoadByPassCache, isLoadFromCache, isLoadingDocument, isLoadInhibitCaching, isLoadInhibitPersistenCaching, isLoadNormal, isRequestPending
 
Methods inherited from class com.teamdev.jxbrowser.event.WebBrowserEvent
getWebBrowser
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityEvent

public SecurityEvent(WebBrowser source,
                     org.mozilla.interfaces.nsIWebProgress webProgress,
                     org.mozilla.interfaces.nsIRequest request,
                     long state)
Method Detail

getState

public long getState()
Returns a value composed of the Security State Flags and the Security Strength Flags.

Returns:
value composed of the Security State Flags and the Security Strength Flags
See Also:
RequestListener.STATE_IS_BROKEN, RequestListener.STATE_IS_SECURE, RequestListener.STATE_IS_INSECURE, RequestListener.STATE_SECURE_HIGH, RequestListener.STATE_SECURE_MED, RequestListener.STATE_SECURE_LOW

isSecure

public boolean isSecure()
This flag indicates that the data corresponding to the request was received over a secure channel. The degree of security is expressed by STATE_SECURE_HIGH, STATE_SECURE_MED, or STATE_SECURE_LOW

Returns:
true if state flag is secure, else false.

isBroken

public boolean isBroken()
This flag indicates an unknown security state. This may mean that the request is being loaded as part of a page in which some content was received over an insecure channel.

Returns:
true if state flag is broken, else false.

isInsecure

public boolean isInsecure()
This flag indicates that the data corresponding to the request was received over an insecure channel.

Returns:
true if state flag is insecure, else false.

isSecureHigh

public boolean isSecureHigh()
This flag indicates a high degree of security

Returns:
true if state flag is secure high, else false

isSecureMed

public boolean isSecureMed()
This flag indicates a medium degree of security

Returns:
true if state flag is secure med, else false

isSecureLow

public boolean isSecureLow()
This flag indicates a low degree of security

Returns:
true if state flag is secure low, else false

toString

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