Java Doc for MessageDigest.java in  » Apache-Harmony-Java-SE » java-package » java » security » 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 » Apache Harmony Java SE » java package » java.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.security.MessageDigestSpi
      java.security.MessageDigest

MessageDigest
abstract public class MessageDigest extends MessageDigestSpi (Code)



Constructor Summary
protected  MessageDigest(String algorithm)
    

Method Summary
public  Objectclone()
    
public  byte[]digest()
     Computes and answers the final hash value that the receiver represents.
public  intdigest(byte[] buf, int offset, int len)
    
public  byte[]digest(byte[] input)
    
final public  StringgetAlgorithm()
     Answers the standard Java Security name for the algorithm being used by the receiver.
final public  intgetDigestLength()
     Return the engine digest length in bytes.
public static  MessageDigestgetInstance(String algorithm)
    
public static  MessageDigestgetInstance(String algorithm, String provider)
    
public static  MessageDigestgetInstance(String algorithm, Provider provider)
     Answers a new MessageDigest which is capable of running the algorithm described by the argument.
final public  ProvidergetProvider()
     Returns the Provider of the digest represented by the receiver.
public static  booleanisEqual(byte[] digesta, byte[] digestb)
     Does a simply byte-per-byte compare of the two digests.
public  voidreset()
     Puts the receiver back in an initial state, such that it is ready to compute a new hash.
public  StringtoString()
     Answers a string containing a concise, human-readable description of the receiver.
public  voidupdate(byte arg0)
     Includes the argument in the hash value computed by the receiver.
public  voidupdate(byte[] input, int offset, int len)
    
public  voidupdate(byte[] input)
    
final public  voidupdate(ByteBuffer input)
    


Constructor Detail
MessageDigest
protected MessageDigest(String algorithm)(Code)




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)



digest
public byte[] digest()(Code)
Computes and answers the final hash value that the receiver represents. After the digest is computed the receiver is reset. the hash the receiver computed
See Also:   MessageDigest.reset



digest
public int digest(byte[] buf, int offset, int len) throws DigestException(Code)



digest
public byte[] digest(byte[] input)(Code)



getAlgorithm
final public String getAlgorithm()(Code)
Answers the standard Java Security name for the algorithm being used by the receiver. String the name of the algorithm



getDigestLength
final public int getDigestLength()(Code)
Return the engine digest length in bytes. Default is 0. int the engine digest length in bytes



getInstance
public static MessageDigest getInstance(String algorithm) throws NoSuchAlgorithmException(Code)



getInstance
public static MessageDigest getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException(Code)



getInstance
public static MessageDigest getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException(Code)
Answers a new MessageDigest which is capable of running the algorithm described by the argument. The result will be an instance of a subclass of MessageDigest which implements that algorithm.
Parameters:
  algorithm - java.lang.String Name of the algorithm desired
Parameters:
  provider - Provider Provider which has to implement the algorithm MessageDigest a concrete implementation for the algorithmdesired.
exception:
  NoSuchAlgorithmException - If the algorithm cannot be found



getProvider
final public Provider getProvider()(Code)
Returns the Provider of the digest represented by the receiver. Provider an instance of a subclass of java.security.Provider



isEqual
public static boolean isEqual(byte[] digesta, byte[] digestb)(Code)
Does a simply byte-per-byte compare of the two digests.
Parameters:
  digesta - One of the digests to compare
Parameters:
  digestb - The digest to compare to true if the two hashes are equalfalse if the two hashes are not equal



reset
public void reset()(Code)
Puts the receiver back in an initial state, such that it is ready to compute a new hash.



toString
public String toString()(Code)
Answers a string containing a concise, human-readable description of the receiver. a printable representation for the receiver.



update
public void update(byte arg0)(Code)
Includes the argument in the hash value computed by the receiver.
Parameters:
  arg0 - byte the byte to feed to the hash algorithm
See Also:   MessageDigest.reset()



update
public void update(byte[] input, int offset, int len)(Code)



update
public void update(byte[] input)(Code)



update
final public void update(ByteBuffer input)(Code)



Methods inherited from java.security.MessageDigestSpi
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
abstract protected byte[] engineDigest()(Code)(Java Doc)
protected int engineDigest(byte[] buf, int offset, int len) throws DigestException(Code)(Java Doc)
protected int engineGetDigestLength()(Code)(Java Doc)
abstract protected void engineReset()(Code)(Java Doc)
abstract protected void engineUpdate(byte input)(Code)(Java Doc)
abstract protected void engineUpdate(byte[] input, int offset, int len)(Code)(Java Doc)
protected void engineUpdate(ByteBuffer input)(Code)(Java Doc)

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