Java Doc for Type3Message.java in  » Net » jCIFS » jcifs » ntlmssp » 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 » Net » jCIFS » jcifs.ntlmssp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jcifs.ntlmssp.NtlmMessage
      jcifs.ntlmssp.Type3Message

Type3Message
public class Type3Message extends NtlmMessage (Code)
Represents an NTLMSSP Type-3 message.



Constructor Summary
public  Type3Message()
     Creates a Type-3 message using default values from the current environment.
public  Type3Message(Type2Message type2)
     Creates a Type-3 message in response to the given Type-2 message using default values from the current environment.
public  Type3Message(Type2Message type2, String password, String domain, String user, String workstation)
     Creates a Type-3 message in response to the given Type-2 message.
public  Type3Message(int flags, byte[] lmResponse, byte[] ntResponse, String domain, String user, String workstation)
     Creates a Type-3 message with the specified parameters.
public  Type3Message(byte[] material)
     Creates a Type-3 message using the given raw Type-3 material.

Method Summary
public static  StringgetDefaultDomain()
     Returns the default domain from the current environment.
public static  intgetDefaultFlags()
     Returns the default flags for a generic Type-3 message in the current environment.
public static  intgetDefaultFlags(Type2Message type2)
     Returns the default flags for a Type-3 message created in response to the given Type-2 message in the current environment.
public static  StringgetDefaultPassword()
     Returns the default password from the current environment.
public static  StringgetDefaultUser()
     Returns the default user from the current environment.
public static  StringgetDefaultWorkstation()
     Returns the default workstation from the current environment.
public  StringgetDomain()
     Returns the domain in which the user has an account.
public  byte[]getLMResponse()
     Returns the LanManager/LMv2 response.
public static  byte[]getLMResponse(Type2Message type2, String password)
     Constructs the LanManager response to the given Type-2 message using the supplied password.
Parameters:
  type2 - The Type-2 message.
Parameters:
  password - The password.
public static  byte[]getLMv2Response(Type2Message type2, String domain, String user, String password, byte[] clientChallenge)
    
public  byte[]getNTResponse()
     Returns the NT/NTLMv2 response.
public static  byte[]getNTResponse(Type2Message type2, String password)
     Constructs the NT response to the given Type-2 message using the supplied password.
Parameters:
  type2 - The Type-2 message.
Parameters:
  password - The password.
public  byte[]getSessionKey()
     Returns the session key.
public  StringgetUser()
     Returns the username for the authenticating user.
public  StringgetWorkstation()
     Returns the workstation from which authentication is being performed.
public  voidsetDomain(String domain)
     Sets the domain for this message.
public  voidsetLMResponse(byte[] lmResponse)
     Sets the LanManager/LMv2 response for this message.
public  voidsetNTResponse(byte[] ntResponse)
     Sets the NT/NTLMv2 response for this message.
public  voidsetSessionKey(byte[] sessionKey)
     Sets the session key.
public  voidsetUser(String user)
     Sets the user for this message.
public  voidsetWorkstation(String workstation)
     Sets the workstation for this message.
public  byte[]toByteArray()
    
public  StringtoString()
    


Constructor Detail
Type3Message
public Type3Message()(Code)
Creates a Type-3 message using default values from the current environment.



Type3Message
public Type3Message(Type2Message type2)(Code)
Creates a Type-3 message in response to the given Type-2 message using default values from the current environment.
Parameters:
  type2 - The Type-2 message which this represents a response to.



Type3Message
public Type3Message(Type2Message type2, String password, String domain, String user, String workstation)(Code)
Creates a Type-3 message in response to the given Type-2 message.
Parameters:
  type2 - The Type-2 message which this represents a response to.
Parameters:
  password - The password to use when constructing the response.
Parameters:
  domain - The domain in which the user has an account.
Parameters:
  user - The username for the authenticating user.
Parameters:
  workstation - The workstation from which authentication istaking place.



Type3Message
public Type3Message(int flags, byte[] lmResponse, byte[] ntResponse, String domain, String user, String workstation)(Code)
Creates a Type-3 message with the specified parameters.
Parameters:
  flags - The flags to apply to this message.
Parameters:
  lmResponse - The LanManager/LMv2 response.
Parameters:
  ntResponse - The NT/NTLMv2 response.
Parameters:
  domain - The domain in which the user has an account.
Parameters:
  user - The username for the authenticating user.
Parameters:
  workstation - The workstation from which authentication istaking place.



Type3Message
public Type3Message(byte[] material) throws IOException(Code)
Creates a Type-3 message using the given raw Type-3 material.
Parameters:
  material - The raw Type-3 material used to construct this message.
throws:
  IOException - If an error occurs while parsing the material.




Method Detail
getDefaultDomain
public static String getDefaultDomain()(Code)
Returns the default domain from the current environment. The default domain.



getDefaultFlags
public static int getDefaultFlags()(Code)
Returns the default flags for a generic Type-3 message in the current environment. An int containing the default flags.



getDefaultFlags
public static int getDefaultFlags(Type2Message type2)(Code)
Returns the default flags for a Type-3 message created in response to the given Type-2 message in the current environment. An int containing the default flags.



getDefaultPassword
public static String getDefaultPassword()(Code)
Returns the default password from the current environment. The default password.



getDefaultUser
public static String getDefaultUser()(Code)
Returns the default user from the current environment. The default user.



getDefaultWorkstation
public static String getDefaultWorkstation()(Code)
Returns the default workstation from the current environment. The default workstation.



getDomain
public String getDomain()(Code)
Returns the domain in which the user has an account. A String containing the domain for the user.



getLMResponse
public byte[] getLMResponse()(Code)
Returns the LanManager/LMv2 response. A byte[] containing the LanManager response.



getLMResponse
public static byte[] getLMResponse(Type2Message type2, String password)(Code)
Constructs the LanManager response to the given Type-2 message using the supplied password.
Parameters:
  type2 - The Type-2 message.
Parameters:
  password - The password. A byte[] containing the LanManager response.



getLMv2Response
public static byte[] getLMv2Response(Type2Message type2, String domain, String user, String password, byte[] clientChallenge)(Code)



getNTResponse
public byte[] getNTResponse()(Code)
Returns the NT/NTLMv2 response. A byte[] containing the NT/NTLMv2 response.



getNTResponse
public static byte[] getNTResponse(Type2Message type2, String password)(Code)
Constructs the NT response to the given Type-2 message using the supplied password.
Parameters:
  type2 - The Type-2 message.
Parameters:
  password - The password. A byte[] containing the NT response.



getSessionKey
public byte[] getSessionKey()(Code)
Returns the session key. A byte[] containing the session key.



getUser
public String getUser()(Code)
Returns the username for the authenticating user. A String containing the user for this message.



getWorkstation
public String getWorkstation()(Code)
Returns the workstation from which authentication is being performed. A String containing the workstation.



setDomain
public void setDomain(String domain)(Code)
Sets the domain for this message.
Parameters:
  domain - The domain.



setLMResponse
public void setLMResponse(byte[] lmResponse)(Code)
Sets the LanManager/LMv2 response for this message.
Parameters:
  lmResponse - The LanManager response.



setNTResponse
public void setNTResponse(byte[] ntResponse)(Code)
Sets the NT/NTLMv2 response for this message.
Parameters:
  ntResponse - The NT/NTLMv2 response.



setSessionKey
public void setSessionKey(byte[] sessionKey)(Code)
Sets the session key.
Parameters:
  sessionKey - The session key.



setUser
public void setUser(String user)(Code)
Sets the user for this message.
Parameters:
  user - The user.



setWorkstation
public void setWorkstation(String workstation)(Code)
Sets the workstation for this message.
Parameters:
  workstation - The workstation.



toByteArray
public byte[] toByteArray()(Code)



toString
public String toString()(Code)



Fields inherited from jcifs.ntlmssp.NtlmMessage
final protected static byte[] NTLMSSP_SIGNATURE(Code)(Java Doc)

Methods inherited from jcifs.ntlmssp.NtlmMessage
public boolean getFlag(int flag)(Code)(Java Doc)
public int getFlags()(Code)(Java Doc)
static String getOEMEncoding()(Code)(Java Doc)
static byte[] readSecurityBuffer(byte[] src, int index)(Code)(Java Doc)
static int readULong(byte[] src, int index)(Code)(Java Doc)
static int readUShort(byte[] src, int index)(Code)(Java Doc)
public void setFlag(int flag, boolean value)(Code)(Java Doc)
public void setFlags(int flags)(Code)(Java Doc)
abstract public byte[] toByteArray()(Code)(Java Doc)
static void writeSecurityBuffer(byte[] dest, int offset, int bodyOffset, byte[] src)(Code)(Java Doc)
static void writeULong(byte[] dest, int offset, int ulong)(Code)(Java Doc)
static void writeUShort(byte[] dest, int offset, int ushort)(Code)(Java Doc)

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.