Java Doc for InternalCredential.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » security » om » 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 » Portal » jetspeed 2.1.3 » org.apache.jetspeed.security.om 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jetspeed.security.om.InternalCredential

All known Subclasses:   org.apache.jetspeed.security.om.impl.InternalCredentialImpl,
InternalCredential
public interface InternalCredential extends Serializable,Cloneable(Code)

Interface representing a security credential.

The credential value represents the value of the credential such as a password.

For now, we do not have custom credentials classes and credentials support only 1 credential (i.e. 1 password).

The credential type represents whether a credential is private or public:

  • Private credential: type == 0
  • Public credential: type == 1

The credential classname represent the class of credential.

TODO Add multiple credentials support.
author:
   David Le Strat
version:
   $Id: InternalCredential.java 516448 2007-03-09 16:25:47Z ate $


Field Summary
final public static  DateMAX_DATE
     Maximum allowed java.sql.Date value (according to the specs).
final public static  intPRIVATE
     Private credentials type.
final public static  intPUBLIC
     Public credentials type.


Method Summary
 intgetAuthenticationFailures()
    
 StringgetClassname()
    
 TimestampgetCreationDate()
    
 longgetCredentialId()
    
 DategetExpirationDate()
    
 TimestampgetLastAuthenticationDate()
    
 TimestampgetModifiedDate()
    
 TimestampgetPreviousAuthenticationDate()
    
 longgetPrincipalId()
    
 intgetType()
    
 StringgetValue()
    
 booleanisEnabled()
    
 booleanisEncoded()
    
 booleanisExpired()
    
 booleanisUpdateRequired()
    
 voidsetAuthenticationFailures(int authenticationFailures)
    
 voidsetClassname(String classname)
    
 voidsetCreationDate(Timestamp creationDate)
    
 voidsetCredentialId(long credentialId)
    
 voidsetEnabled(boolean enabled)
    
 voidsetEncoded(boolean encoded)
    
 voidsetExpirationDate(Date expirationDate)
    
 voidsetExpired(boolean expired)
    
 voidsetLastAuthenticationDate(Timestamp lastAuthenticationDate)
    
 voidsetModifiedDate(Timestamp modifiedDate)
    
 voidsetPreviousAuthenticationDate(Timestamp previousAuthenticationDate)
    
 voidsetPrincipalId(long principalId)
    
 voidsetType(int type)
    
 voidsetUpdateRequired(boolean updateRequired)
    
 voidsetValue(String value)
    

Field Detail
MAX_DATE
final public static Date MAX_DATE(Code)
Maximum allowed java.sql.Date value (according to the specs). Note:
The concrete value is default time zone dependent and should only be used for setting Date fields, not to compare against.



PRIVATE
final public static int PRIVATE(Code)
Private credentials type.



PUBLIC
final public static int PUBLIC(Code)
Public credentials type.





Method Detail
getAuthenticationFailures
int getAuthenticationFailures()(Code)

Getter for the current number of authentication failures in a row.

  • -1: never tried yet
  • 0: none, or last attempt was successful
  • >0: number of failures
The number of authentication failures



getClassname
String getClassname()(Code)

Getter for the principal classname.

The principal classname.



getCreationDate
Timestamp getCreationDate()(Code)

Getter for creation date.

The creation date.



getCredentialId
long getCredentialId()(Code)

Getter for the credential id.

The credential id.



getExpirationDate
Date getExpirationDate()(Code)

Getter for the expiration date.

The expiration date.



getLastAuthenticationDate
Timestamp getLastAuthenticationDate()(Code)

Getter for the last authentication date

The last authentication date.



getModifiedDate
Timestamp getModifiedDate()(Code)

Getter for the modified date.

The modified date.



getPreviousAuthenticationDate
Timestamp getPreviousAuthenticationDate()(Code)

Getter for the previous authentication date

The previous authentication date.



getPrincipalId
long getPrincipalId()(Code)

Getter for the principal id.

The principal id.



getType
int getType()(Code)

Getter for the credential type.

  • Private credential: type == 0
  • Public credential: type == 1
The credential type.



getValue
String getValue()(Code)

Getter for the credential value.

The credential value.



isEnabled
boolean isEnabled()(Code)

Getter for the enabled state

true if enabled



isEncoded
boolean isEncoded()(Code)

Getter for the encoded state

true if encoded



isExpired
boolean isExpired()(Code)
Getter for the expired state.

true if expired



isUpdateRequired
boolean isUpdateRequired()(Code)

Getter for the update required state

true if required



setAuthenticationFailures
void setAuthenticationFailures(int authenticationFailures)(Code)

Setter for the number of authentication failures


Parameters:
  authenticationFailures - The number of authentication failures



setClassname
void setClassname(String classname)(Code)

Setter for the principal classname.


Parameters:
  classname - The principal classname.



setCreationDate
void setCreationDate(Timestamp creationDate)(Code)

Setter for the creation date.


Parameters:
  creationDate - The creation date.



setCredentialId
void setCredentialId(long credentialId)(Code)

Setter for the credential id.


Parameters:
  credentialId - The credential id.



setEnabled
void setEnabled(boolean enabled)(Code)
Setter for the enabled state


Parameters:
  enabled - The enabled state



setEncoded
void setEncoded(boolean encoded)(Code)
Setter for the encoded state


Parameters:
  encoded - The encoded state



setExpirationDate
void setExpirationDate(Date expirationDate)(Code)

Setter for the expiration date.


Parameters:
  expirationDate - The expiration date.



setExpired
void setExpired(boolean expired)(Code)
Setter for the expired state.


Parameters:
  expired - The expired state



setLastAuthenticationDate
void setLastAuthenticationDate(Timestamp lastAuthenticationDate)(Code)

Setter for the last authentication date


Parameters:
  lastAuthenticationDate - The last authentication date.



setModifiedDate
void setModifiedDate(Timestamp modifiedDate)(Code)

Setter for the modified date.


Parameters:
  modifiedDate - The modified date.



setPreviousAuthenticationDate
void setPreviousAuthenticationDate(Timestamp previousAuthenticationDate)(Code)

Setter for the previous authentication date


Parameters:
  previousAuthenticationDate - The previous authentication date.



setPrincipalId
void setPrincipalId(long principalId)(Code)

Setter for the principal id.


Parameters:
  principalId - The principal id.



setType
void setType(int type)(Code)

Setter for the credential type.

  • Private credential: type == 0
  • Public credential: type == 1

Parameters:
  type - The credential type.



setUpdateRequired
void setUpdateRequired(boolean updateRequired)(Code)

Setter for the update required state


Parameters:
  updateRequired - the update required state



setValue
void setValue(String value)(Code)

Setter for the credential value.


Parameters:
  value - The credential value.



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