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


com.sun.xml.wss.impl.misc.SecurityHeaderBlockImpl
   com.sun.xml.wss.core.UsernameToken

UsernameToken
public class UsernameToken extends SecurityHeaderBlockImpl implements SecurityToken,Token(Code)
Support for a WSS:Username Token Profile. Represents a wsse:UsernameToken.
author:
   Manveen Kaur
author:
   Edwin Goei


Field Summary
final public static  longMAX_NONCE_AGE
    

Constructor Summary
public  UsernameToken(Document document, String username)
    
public  UsernameToken(Document document, String username, String password, boolean digestPassword)
    
public  UsernameToken(Document document, String username, String password)
    
public  UsernameToken(Document document, String username, String password, boolean setNonce, boolean digestPassword)
     C'tor that creates the optional element nonce, created is not set.
public  UsernameToken(Document document, String username, String password, boolean setNonce, boolean setCreatedTimestamp, boolean digestPassword)
     C'tor that creates the optional elements of nonce and created.
public  UsernameToken(SOAPElement usernameTokenSoapElement, boolean bspFlag)
    
public  UsernameToken(SOAPElement usernameTokenSoapElement)
    

Method Summary
public static  SecurityHeaderBlockfromSoapElement(SOAPElement element)
    
public  SOAPElementgetAsSoapElement()
    
public  StringgetCreated()
     Returns the created which may be null meaning no time of creation.
public  StringgetNonce()
     Returns the encoded nonce.
public  StringgetNonceEncodingType()
    
public  StringgetPassword()
    
public  StringgetPasswordDigest()
    
public  StringgetPasswordType()
    
public  ObjectgetTokenValue()
    
public  StringgetType()
    
public  StringgetUsername()
    
public  voidisBSP(boolean flag)
    
public  booleanisBSP()
    
public  voidsetCreationTime(String time)
     set the creation time.
public  voidsetDigestOn()
    
public  voidsetNonce(String nonceValue)
     set the nonce value.If nonce value is null then it will create one.
public  voidsetPassword(String passwd)
     Sets the password.
public  voidsetUsername(String username)
    

Field Detail
MAX_NONCE_AGE
final public static long MAX_NONCE_AGE(Code)




Constructor Detail
UsernameToken
public UsernameToken(Document document, String username) throws SecurityTokenException(Code)



UsernameToken
public UsernameToken(Document document, String username, String password, boolean digestPassword) throws SecurityTokenException(Code)



UsernameToken
public UsernameToken(Document document, String username, String password) throws SecurityTokenException(Code)



UsernameToken
public UsernameToken(Document document, String username, String password, boolean setNonce, boolean digestPassword) throws SecurityTokenException(Code)
C'tor that creates the optional element nonce, created is not set.



UsernameToken
public UsernameToken(Document document, String username, String password, boolean setNonce, boolean setCreatedTimestamp, boolean digestPassword) throws SecurityTokenException(Code)
C'tor that creates the optional elements of nonce and created.



UsernameToken
public UsernameToken(SOAPElement usernameTokenSoapElement, boolean bspFlag) throws XWSSecurityException(Code)



UsernameToken
public UsernameToken(SOAPElement usernameTokenSoapElement) throws XWSSecurityException(Code)
Extracts info from SOAPElement representation
Parameters:
  usernameTokenSoapElement -




Method Detail
fromSoapElement
public static SecurityHeaderBlock fromSoapElement(SOAPElement element) throws XWSSecurityException(Code)



getAsSoapElement
public SOAPElement getAsSoapElement() throws SecurityTokenException(Code)



getCreated
public String getCreated()(Code)
Returns the created which may be null meaning no time of creation.



getNonce
public String getNonce() throws SecurityTokenException(Code)
Returns the encoded nonce. Null indicates no nonce was set.



getNonceEncodingType
public String getNonceEncodingType()(Code)
Returns the Nonce Encoding type.



getPassword
public String getPassword()(Code)
Returns the password which may be null meaning no password.



getPasswordDigest
public String getPasswordDigest()(Code)



getPasswordType
public String getPasswordType()(Code)
Returns the passwordType.



getTokenValue
public Object getTokenValue()(Code)



getType
public String getType()(Code)



getUsername
public String getUsername()(Code)
Returns the username.



isBSP
public void isBSP(boolean flag)(Code)



isBSP
public boolean isBSP()(Code)



setCreationTime
public void setCreationTime(String time) throws XWSSecurityException(Code)
set the creation time.
Parameters:
  time - If null or empty then this method would create one.



setDigestOn
public void setDigestOn() throws SecurityTokenException(Code)



setNonce
public void setNonce(String nonceValue)(Code)
set the nonce value.If nonce value is null then it will create one.
Parameters:
  nonceValue -



setPassword
public void setPassword(String passwd)(Code)
Sets the password.
Parameters:
  passwd -



setUsername
public void setUsername(String username)(Code)



Fields inherited from com.sun.xml.wss.impl.misc.SecurityHeaderBlockImpl
protected SOAPElement delegateElement(Code)(Java Doc)

Methods inherited from com.sun.xml.wss.impl.misc.SecurityHeaderBlockImpl
public SOAPElement addAttribute(Name arg0, String arg1) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(String arg0) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(String arg0, String arg1) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(String arg0, String arg1, String arg2) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(Name arg0) throws SOAPException(Code)(Java Doc)
public SOAPElement addChildElement(SOAPElement arg0) throws SOAPException(Code)(Java Doc)
public SOAPElement addNamespaceDeclaration(String arg0, String arg1) throws SOAPException(Code)(Java Doc)
public SOAPElement addTextNode(String arg0) throws SOAPException(Code)(Java Doc)
public Node appendChild(Node arg0) throws DOMException(Code)(Java Doc)
public Node cloneNode(boolean arg0)(Code)(Java Doc)
public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException(Code)(Java Doc)
public void detachNode()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public static SecurityHeaderBlock fromSoapElement(SOAPElement element, Class implClass) throws XWSSecurityException(Code)(Java Doc)
public Iterator getAllAttributes()(Code)(Java Doc)
public Iterator getAllAttributesAsQNames()(Code)(Java Doc)
public SOAPElement getAsSoapElement() throws XWSSecurityException(Code)(Java Doc)
public String getAttribute(String arg0)(Code)(Java Doc)
public String getAttributeNS(String arg0, String arg1)(Code)(Java Doc)
public Attr getAttributeNode(String arg0)(Code)(Java Doc)
public Attr getAttributeNodeNS(String arg0, String arg1)(Code)(Java Doc)
public String getAttributeValue(Name arg0)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public String getBaseURI()(Code)(Java Doc)
public Iterator getChildElements()(Code)(Java Doc)
public Iterator getChildElements(Name arg0)(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
public Name getElementName()(Code)(Java Doc)
public NodeList getElementsByTagName(String arg0)(Code)(Java Doc)
public NodeList getElementsByTagNameNS(String arg0, String arg1)(Code)(Java Doc)
public String getEncodingStyle()(Code)(Java Doc)
public Object getFeature(String feature, String version)(Code)(Java Doc)
public Node getFirstChild()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public Node getLastChild()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public Iterator getNamespacePrefixes()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public String getNamespaceURI(String arg0)(Code)(Java Doc)
public Node getNextSibling()(Code)(Java Doc)
public String getNodeName()(Code)(Java Doc)
public short getNodeType()(Code)(Java Doc)
public String getNodeValue() throws DOMException(Code)(Java Doc)
public Document getOwnerDocument()(Code)(Java Doc)
public SOAPElement getParentElement()(Code)(Java Doc)
public Node getParentNode()(Code)(Java Doc)
public String getPrefix()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public TypeInfo getSchemaTypeInfo()(Code)(Java Doc)
protected static SOAPFactory getSoapFactory()(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
public String getTextContent() throws DOMException(Code)(Java Doc)
public Object getUserData(String key)(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public Iterator getVisibleNamespacePrefixes()(Code)(Java Doc)
public boolean hasAttribute(String arg0)(Code)(Java Doc)
public boolean hasAttributeNS(String arg0, String arg1)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasChildNodes()(Code)(Java Doc)
public Node insertBefore(Node arg0, Node arg1) throws DOMException(Code)(Java Doc)
public void isBSP(boolean flag)(Code)(Java Doc)
public boolean isBSP()(Code)(Java Doc)
public boolean isDefaultNamespace(String namespaceURI)(Code)(Java Doc)
public boolean isEqualNode(org.w3c.dom.Node arg)(Code)(Java Doc)
public boolean isSameNode(org.w3c.dom.Node other)(Code)(Java Doc)
public boolean isSupported(String arg0, String arg1)(Code)(Java Doc)
public String lookupNamespaceURI(String prefix)(Code)(Java Doc)
public String lookupPrefix(String namespaceURI)(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
public void recycleNode()(Code)(Java Doc)
public void removeAttribute(String arg0) throws DOMException(Code)(Java Doc)
public boolean removeAttribute(Name arg0)(Code)(Java Doc)
public void removeAttributeNS(String arg0, String arg1) throws DOMException(Code)(Java Doc)
public Attr removeAttributeNode(Attr arg0) throws DOMException(Code)(Java Doc)
public Node removeChild(Node arg0) throws DOMException(Code)(Java Doc)
public void removeContents()(Code)(Java Doc)
public boolean removeNamespaceDeclaration(String arg0)(Code)(Java Doc)
public Node replaceChild(Node arg0, Node arg1) throws DOMException(Code)(Java Doc)
public void setAttribute(String arg0, String arg1) throws DOMException(Code)(Java Doc)
public void setAttributeNS(String arg0, String arg1, String arg2) throws DOMException(Code)(Java Doc)
public Attr setAttributeNode(Attr arg0) throws DOMException(Code)(Java Doc)
public Attr setAttributeNodeNS(Attr arg0) throws DOMException(Code)(Java Doc)
public void setEncodingStyle(String arg0) throws SOAPException(Code)(Java Doc)
public void setIdAttribute(String name, boolean isId) throws DOMException(Code)(Java Doc)
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException(Code)(Java Doc)
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException(Code)(Java Doc)
public void setNodeValue(String arg0) throws DOMException(Code)(Java Doc)
public void setParentElement(SOAPElement arg0) throws SOAPException(Code)(Java Doc)
public void setPrefix(String arg0) throws DOMException(Code)(Java Doc)
protected void setSOAPElement(SOAPElement delegateElement)(Code)(Java Doc)
public void setTextContent(String textContent) throws DOMException(Code)(Java Doc)
public Object setUserData(String key, Object data, UserDataHandler handler)(Code)(Java Doc)
public void setValue(String arg0)(Code)(Java Doc)
protected void setWsuIdAttr(Element element, String wsuId)(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.