Java Doc for WikiSecurityEvent.java in  » Wiki-Engine » JSPWiki » com » ecyrd » jspwiki » event » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Wiki Engine » JSPWiki » com.ecyrd.jspwiki.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ecyrd.jspwiki.event.WikiEvent
   com.ecyrd.jspwiki.event.WikiSecurityEvent

WikiSecurityEvent
final public class WikiSecurityEvent extends WikiEvent (Code)

Event class for security events: login/logout, wiki group adds/changes, and authorization decisions. When a WikiSecurityEvent is constructed, the security logger WikiSecurityEvent.log is notified.

These events are logged with priority ERROR:

  • login failed - bad credential or password

These events are logged with priority WARN:

  • access denied
  • login failed - credential expired
  • login failed - account expired

These events are logged with priority INFO:

  • login succeeded
  • logout
  • user profile name changed

These events are logged with priority DEBUG:

  • access allowed
  • add group
  • remove group
  • clear all groups
  • add group member
  • remove group member
  • clear all members from group

author:
   Andrew Jaquith
since:
   2.3.79


Field Summary
final public static  intACCESS_ALLOWED
     When access to a resource is allowed.
final public static  intACCESS_DENIED
     When access to a resource is allowed.
final public static  intGROUP_ADD
     When a new wiki group is added.
final public static  intGROUP_CLEAR_GROUPS
     When all wiki groups are removed from GroupDatabase.
final public static  intGROUP_REMOVE
     When a wiki group is deleted.
final public static  intLOGIN_ACCOUNT_EXPIRED
     When a login fails due to account expiration.
final public static  intLOGIN_ANONYMOUS
     When a user first accesses JSPWiki, but before logging in or setting a cookie.
final public static  intLOGIN_ASSERTED
     When a user sets a cookie to assert their identity.
final public static  intLOGIN_AUTHENTICATED
     When a user authenticates with a username and password, or via container auth.
final public static  intLOGIN_CREDENTIAL_EXPIRED
     When a login fails due to credential expiration.
final public static  intLOGIN_FAILED
     When a login fails due to wrong username or password.
final public static  intLOGIN_INITIATED
     When a user's attempts to log in as guest, via cookies, using a password or otherwise.
final public static  intLOGOUT
     When a user logs out.
final public static  intPROFILE_NAME_CHANGED
     When a user profile name changes.
final public static  intPROFILE_SAVE
     When a user profile is saved.
final public static  intSESSION_EXPIRED
     When a session expires.
final protected static  Loggerlog
     The security logging service.

Constructor Summary
public  WikiSecurityEvent(Object src, int type, Principal principal, Object target)
     Constructs a new instance of this event type, which signals a security event has occurred.
public  WikiSecurityEvent(Object src, int type, Object target)
     Constructs a new instance of this event type, which signals a security event has occurred.

Method Summary
final public  StringeventName(int type)
     Returns a textual representation of an event type.
final public  ObjectgetPrincipal()
     Returns the principal to whom the opeation applied, if supplied.
final public  ObjectgetTarget()
     Returns the object that was operated on, if supplied.
final public  StringgetTypeDescription()
     Returns a human-readable description of the event type.
final public  StringtoString()
     Prints a String (human-readable) representation of this object.

Field Detail
ACCESS_ALLOWED
final public static int ACCESS_ALLOWED(Code)
When access to a resource is allowed.



ACCESS_DENIED
final public static int ACCESS_DENIED(Code)
When access to a resource is allowed.



GROUP_ADD
final public static int GROUP_ADD(Code)
When a new wiki group is added.



GROUP_CLEAR_GROUPS
final public static int GROUP_CLEAR_GROUPS(Code)
When all wiki groups are removed from GroupDatabase.



GROUP_REMOVE
final public static int GROUP_REMOVE(Code)
When a wiki group is deleted.



LOGIN_ACCOUNT_EXPIRED
final public static int LOGIN_ACCOUNT_EXPIRED(Code)
When a login fails due to account expiration.



LOGIN_ANONYMOUS
final public static int LOGIN_ANONYMOUS(Code)
When a user first accesses JSPWiki, but before logging in or setting a cookie.



LOGIN_ASSERTED
final public static int LOGIN_ASSERTED(Code)
When a user sets a cookie to assert their identity.



LOGIN_AUTHENTICATED
final public static int LOGIN_AUTHENTICATED(Code)
When a user authenticates with a username and password, or via container auth.



LOGIN_CREDENTIAL_EXPIRED
final public static int LOGIN_CREDENTIAL_EXPIRED(Code)
When a login fails due to credential expiration.



LOGIN_FAILED
final public static int LOGIN_FAILED(Code)
When a login fails due to wrong username or password.



LOGIN_INITIATED
final public static int LOGIN_INITIATED(Code)
When a user's attempts to log in as guest, via cookies, using a password or otherwise.



LOGOUT
final public static int LOGOUT(Code)
When a user logs out.



PROFILE_NAME_CHANGED
final public static int PROFILE_NAME_CHANGED(Code)
When a user profile name changes.



PROFILE_SAVE
final public static int PROFILE_SAVE(Code)
When a user profile is saved.



SESSION_EXPIRED
final public static int SESSION_EXPIRED(Code)
When a session expires.



log
final protected static Logger log(Code)
The security logging service.




Constructor Detail
WikiSecurityEvent
public WikiSecurityEvent(Object src, int type, Principal principal, Object target)(Code)
Constructs a new instance of this event type, which signals a security event has occurred. The source parameter is required, and may not be null. When the WikiSecurityEvent is constructed, the security logger WikiSecurityEvent.log is notified.
Parameters:
  src - the source of the event, which can be any object: a wikipage, group or authentication/authentication/group manager.
Parameters:
  type - the type of event
Parameters:
  principal - the subject of the event, which may be null
Parameters:
  target - the changed Object, which may be null



WikiSecurityEvent
public WikiSecurityEvent(Object src, int type, Object target)(Code)
Constructs a new instance of this event type, which signals a security event has occurred. The source parameter is required, and may not be null. When the WikiSecurityEvent is constructed, the security logger WikiSecurityEvent.log is notified.
Parameters:
  src - the source of the event, which can be any object: a wikipage, group or authentication/authentication/group manager.
Parameters:
  type - the type of event
Parameters:
  target - the changed Object, which may be null.




Method Detail
eventName
final public String eventName(int type)(Code)
Returns a textual representation of an event type.
Parameters:
  type - the type the string representation



getPrincipal
final public Object getPrincipal()(Code)
Returns the principal to whom the opeation applied, if supplied. This method may return null — and calling methods should check for this condition. the changed object



getTarget
final public Object getTarget()(Code)
Returns the object that was operated on, if supplied. This method may return null — and calling methods should check for this condition. the changed object



getTypeDescription
final public String getTypeDescription()(Code)
Returns a human-readable description of the event type. a String description of the type



toString
final public String toString()(Code)
Prints a String (human-readable) representation of this object.
See Also:   java.lang.Object.toString



Fields inherited from com.ecyrd.jspwiki.event.WikiEvent
final public static int ERROR(Code)(Java Doc)
final public static int UNDEFINED(Code)(Java Doc)

Methods inherited from com.ecyrd.jspwiki.event.WikiEvent
public String eventName()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public String getTypeDescription()(Code)(Java Doc)
public long getWhen()(Code)(Java Doc)
public static boolean isValidType(int type)(Code)(Java Doc)
protected void setType(int type)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.