Java Doc for WSITProviderSecurityEnvironment.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » wss » impl » misc » 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 » 6.0 JDK Modules com.sun » xws security » com.sun.xml.wss.impl.misc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.wss.impl.misc.WSITProviderSecurityEnvironment

WSITProviderSecurityEnvironment
public class WSITProviderSecurityEnvironment implements SecurityEnvironment(Code)

author:
   kumar.jayanti


Field Summary
final protected  longMAX_CLOCK_SKEW
    
final protected  longTIMESTAMP_FRESHNESS_LIMIT
    
final static  booleanUSE_DAEMON_THREAD
    
final protected static  Loggerlog
    
protected  longmaxClockSkewG
    
protected  longmaxNonceAge
    
 NonceCachenonceCache
    
final static  TimernonceCleanupTimer
    
protected  booleanrevocationEnabled
    
protected  StringrevocationEnabledAttr
    
protected  longtimestampFreshnessLimitG
    

Constructor Summary
public  WSITProviderSecurityEnvironment(CallbackHandler handler, Map options, Properties configAssertions)
    

Method Summary
public  booleanauthenticateUser(Map context, String username, String password)
     Authenticate the user against a list of known username-password pairs.
public  booleanauthenticateUser(Map context, String username, String passwordDigest, String nonce, String created)
     Authenticate the user given the password digest.
public  CallbackHandlergetCallbackHandler()
    
public  X509CertificategetCertificate(Map context, String alias, boolean forSigning)
    
public  X509CertificategetCertificate(Map context, BigInteger serialNumber, String issuerName)
    
public  X509CertificategetCertificate(String keyIdentifier)
    
public  X509CertificategetCertificate(Map context, byte[] ski)
    
public  X509CertificategetCertificate(Map context, PublicKey publicKey, boolean forSign)
    
public  X509CertificategetCertificate(Map context, byte[] identifier, String valueType)
    
public  X509CertificategetDefaultCertificate(Map context)
     Retrieves a reasonable default value for the current user's X509Certificate if one exists.
public  X509CertificategetMatchingCertificate(Map context, byte[] keyIdMatch)
    
public  X509CertificategetMatchingCertificate(Map context, BigInteger serialNumber, String issuerName)
    
public  X509CertificategetMatchingCertificate(Map context, byte[] keyIdMatch, String valueType)
    
public  StringgetPassword(Map context)
    
public  PrivateKeygetPrivateKey(Map context, String alias)
    
public  PrivateKeygetPrivateKey(Map context, byte[] keyIdentifier)
    
public  PrivateKeygetPrivateKey(Map context, X509Certificate cert)
    
public  PrivateKeygetPrivateKey(Map context, BigInteger serialNumber, String issuerName)
    
public  PrivateKeygetPrivateKey(Map context, PublicKey publicKey, boolean forSign)
    
public  PrivateKeygetPrivateKey(Map context, byte[] keyIdentifier, String valueType)
    
public  PublicKeygetPublicKey(Map context, BigInteger serialNumber, String issuerName)
    
public  PublicKeygetPublicKey(String keyIdentifier)
    
public  PublicKeygetPublicKey(Map context, byte[] keyIdentifier)
    
public  PublicKeygetPublicKey(Map context, byte[] identifier, String valueType)
    
public  SubjectgetRequesterSubject(Map context)
    
public  SecretKeygetSecretKey(Map context, String alias, boolean encryptMode)
    
public  SubjectgetSubject()
    
public  SubjectgetSubject(Map context)
    
public static  byte[]getThumbprintIdentifier(X509Certificate cert)
    
public  StringgetUsername(Map context)
    
public  booleanisSelfCertificate(X509Certificate cert)
    
public  ElementlocateSAMLAssertion(Map context, Element binding, String assertionId, Document ownerDoc)
    
public  AuthenticationTokenPolicy.SAMLAssertionBindingpopulateSAMLPolicy(Map fpcontext, AuthenticationTokenPolicy.SAMLAssertionBinding samlBinding, DynamicApplicationContext context)
    
public  voidsetRequesterSubject(Subject subject, Map context)
    
public  voidsetSubject(Subject subject, Map context)
    
public  voidupdateOtherPartySubject(Subject subject, String username, String password)
    
public  voidupdateOtherPartySubject(Subject subject, X509Certificate cert)
    
public  voidupdateOtherPartySubject(Subject subject, Assertion assertion)
    
public  voidupdateOtherPartySubject(Subject subj, String encryptedKey)
    
public  voidupdateOtherPartySubject(Subject subject, Key secretKey)
    
public  voidupdateOtherPartySubject(Subject subject, XMLStreamReader assertion)
    
public  voidupdateOtherPartySubject(Subject subject, Subject bootStrapSubject)
    
public  booleanvalidateAndCacheNonce(String nonce, String created, long maxNonceAge)
    
public  booleanvalidateCertificate(X509Certificate cert)
     Validate an X509Certificate.
public  voidvalidateCreationTime(Map context, String creationTime, long maxClockSkew, long timestampFreshnessLimit)
    
public  voidvalidateSAMLAssertion(Map context, Element assertion)
    
public  voidvalidateSAMLAssertion(Map context, XMLStreamReader assertion)
    
public  booleanvalidateSamlIssuer(String issuer)
    
public  booleanvalidateSamlUser(String user, String domain, String format)
    
public  voidvalidateTimestamp(Map context, String created, String expires, long maxClockSkew, long freshnessLimit)
    
public  voidvalidateTimestamp(Map context, Timestamp timestamp, long maxClockSkew, long freshnessLimit)
    

Field Detail
MAX_CLOCK_SKEW
final protected long MAX_CLOCK_SKEW(Code)



TIMESTAMP_FRESHNESS_LIMIT
final protected long TIMESTAMP_FRESHNESS_LIMIT(Code)



USE_DAEMON_THREAD
final static boolean USE_DAEMON_THREAD(Code)



log
final protected static Logger log(Code)
logger



maxClockSkewG
protected long maxClockSkewG(Code)



maxNonceAge
protected long maxNonceAge(Code)



nonceCache
NonceCache nonceCache(Code)



nonceCleanupTimer
final static Timer nonceCleanupTimer(Code)



revocationEnabled
protected boolean revocationEnabled(Code)



revocationEnabledAttr
protected String revocationEnabledAttr(Code)



timestampFreshnessLimitG
protected long timestampFreshnessLimitG(Code)




Constructor Detail
WSITProviderSecurityEnvironment
public WSITProviderSecurityEnvironment(CallbackHandler handler, Map options, Properties configAssertions) throws XWSSecurityException(Code)
Creates a new instance of WSITProviderSecurityEnvironment




Method Detail
authenticateUser
public boolean authenticateUser(Map context, String username, String password) throws XWSSecurityException(Code)
Authenticate the user against a list of known username-password pairs.
Parameters:
  username -
Parameters:
  password - true if the username-password pair is valid



authenticateUser
public boolean authenticateUser(Map context, String username, String passwordDigest, String nonce, String created) throws XWSSecurityException(Code)
Authenticate the user given the password digest.
Parameters:
  username -
Parameters:
  passwordDigest -
Parameters:
  nonce -
Parameters:
  created - true if the password digest is valid



getCallbackHandler
public CallbackHandler getCallbackHandler() throws XWSSecurityException(Code)



getCertificate
public X509Certificate getCertificate(Map context, String alias, boolean forSigning) throws XWSSecurityException(Code)



getCertificate
public X509Certificate getCertificate(Map context, BigInteger serialNumber, String issuerName) throws XWSSecurityException(Code)



getCertificate
public X509Certificate getCertificate(String keyIdentifier) throws XWSSecurityException(Code)



getCertificate
public X509Certificate getCertificate(Map context, byte[] ski)(Code)



getCertificate
public X509Certificate getCertificate(Map context, PublicKey publicKey, boolean forSign) throws XWSSecurityException(Code)



getCertificate
public X509Certificate getCertificate(Map context, byte[] identifier, String valueType) throws XWSSecurityException(Code)



getDefaultCertificate
public X509Certificate getDefaultCertificate(Map context) throws XWSSecurityException(Code)
Retrieves a reasonable default value for the current user's X509Certificate if one exists. the default certificate for the current user
Parameters:
  keyIdentifier - an Opaque identifier indicatingthe X509 certificate.
throws:
  XWSSecurityException -



getMatchingCertificate
public X509Certificate getMatchingCertificate(Map context, byte[] keyIdMatch) throws XWSSecurityException(Code)

Parameters:
  keyIdMatch - KeyIdentifier to search for the matching Certificate



getMatchingCertificate
public X509Certificate getMatchingCertificate(Map context, BigInteger serialNumber, String issuerName) throws XWSSecurityException(Code)



getMatchingCertificate
public X509Certificate getMatchingCertificate(Map context, byte[] keyIdMatch, String valueType) throws XWSSecurityException(Code)

Parameters:
  keyIdMatch - KeyIdentifier to search for the matching Certificate



getPassword
public String getPassword(Map context) throws XWSSecurityException(Code)



getPrivateKey
public PrivateKey getPrivateKey(Map context, String alias) throws XWSSecurityException(Code)



getPrivateKey
public PrivateKey getPrivateKey(Map context, byte[] keyIdentifier) throws XWSSecurityException(Code)



getPrivateKey
public PrivateKey getPrivateKey(Map context, X509Certificate cert) throws XWSSecurityException(Code)



getPrivateKey
public PrivateKey getPrivateKey(Map context, BigInteger serialNumber, String issuerName) throws XWSSecurityException(Code)



getPrivateKey
public PrivateKey getPrivateKey(Map context, PublicKey publicKey, boolean forSign)(Code)



getPrivateKey
public PrivateKey getPrivateKey(Map context, byte[] keyIdentifier, String valueType) throws XWSSecurityException(Code)



getPublicKey
public PublicKey getPublicKey(Map context, BigInteger serialNumber, String issuerName) throws XWSSecurityException(Code)



getPublicKey
public PublicKey getPublicKey(String keyIdentifier) throws XWSSecurityException(Code)



getPublicKey
public PublicKey getPublicKey(Map context, byte[] keyIdentifier) throws XWSSecurityException(Code)



getPublicKey
public PublicKey getPublicKey(Map context, byte[] identifier, String valueType) throws XWSSecurityException(Code)



getRequesterSubject
public Subject getRequesterSubject(Map context)(Code)



getSecretKey
public SecretKey getSecretKey(Map context, String alias, boolean encryptMode) throws XWSSecurityException(Code)



getSubject
public Subject getSubject()(Code)



getSubject
public Subject getSubject(Map context)(Code)



getThumbprintIdentifier
public static byte[] getThumbprintIdentifier(X509Certificate cert) throws XWSSecurityException(Code)



getUsername
public String getUsername(Map context) throws XWSSecurityException(Code)



isSelfCertificate
public boolean isSelfCertificate(X509Certificate cert)(Code)



locateSAMLAssertion
public Element locateSAMLAssertion(Map context, Element binding, String assertionId, Document ownerDoc) throws XWSSecurityException(Code)



populateSAMLPolicy
public AuthenticationTokenPolicy.SAMLAssertionBinding populateSAMLPolicy(Map fpcontext, AuthenticationTokenPolicy.SAMLAssertionBinding samlBinding, DynamicApplicationContext context) throws XWSSecurityException(Code)



setRequesterSubject
public void setRequesterSubject(Subject subject, Map context)(Code)



setSubject
public void setSubject(Subject subject, Map context)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subject, String username, String password)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subject, X509Certificate cert)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subject, Assertion assertion)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subj, String encryptedKey)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subject, Key secretKey)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subject, XMLStreamReader assertion)(Code)



updateOtherPartySubject
public void updateOtherPartySubject(Subject subject, Subject bootStrapSubject)(Code)



validateAndCacheNonce
public boolean validateAndCacheNonce(String nonce, String created, long maxNonceAge) throws XWSSecurityException(Code)



validateCertificate
public boolean validateCertificate(X509Certificate cert) throws XWSSecurityException(Code)
Validate an X509Certificate. true, if the cert is a valid one, false o/w.
throws:
  XWSSecurityException - if there is some problem during validation.



validateCreationTime
public void validateCreationTime(Map context, String creationTime, long maxClockSkew, long timestampFreshnessLimit) throws XWSSecurityException(Code)



validateSAMLAssertion
public void validateSAMLAssertion(Map context, Element assertion) throws XWSSecurityException(Code)



validateSAMLAssertion
public void validateSAMLAssertion(Map context, XMLStreamReader assertion) throws XWSSecurityException(Code)



validateSamlIssuer
public boolean validateSamlIssuer(String issuer)(Code)



validateSamlUser
public boolean validateSamlUser(String user, String domain, String format)(Code)



validateTimestamp
public void validateTimestamp(Map context, String created, String expires, long maxClockSkew, long freshnessLimit) throws XWSSecurityException(Code)



validateTimestamp
public void validateTimestamp(Map context, Timestamp timestamp, long maxClockSkew, long freshnessLimit) throws XWSSecurityException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.