Java Doc for PGPSignature.java in  » Security » Bouncy-Castle » org » bouncycastle » openpgp » 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 » Security » Bouncy Castle » org.bouncycastle.openpgp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.bouncycastle.openpgp.PGPSignature

PGPSignature
public class PGPSignature (Code)
A PGP signature object.


Field Summary
final public static  intBINARY_DOCUMENT
    
final public static  intCANONICAL_TEXT_DOCUMENT
    
final public static  intCASUAL_CERTIFICATION
    
final public static  intCERTIFICATION_REVOCATION
    
final public static  intDEFAULT_CERTIFICATION
    
final public static  intDIRECT_KEY
    
final public static  intKEY_REVOCATION
    
final public static  intNO_CERTIFICATION
    
final public static  intPOSITIVE_CERTIFICATION
    
final public static  intSTAND_ALONE
    
final public static  intSUBKEY_BINDING
    
final public static  intSUBKEY_REVOCATION
    
final public static  intTIMESTAMP
    

Constructor Summary
 PGPSignature(BCPGInputStream pIn)
    
 PGPSignature(SignaturePacket sigPacket)
    
 PGPSignature(SignaturePacket sigPacket, TrustPacket trustPacket)
    

Method Summary
public  voidencode(OutputStream outStream)
    
public  DategetCreationTime()
     Return the creation time of the signature.
public  byte[]getEncoded()
    
public  intgetHashAlgorithm()
     Return the hash algorithm associated with this signature.
public  PGPSignatureSubpacketVectorgetHashedSubPackets()
    
public  intgetKeyAlgorithm()
     Return the key algorithm associated with this signature.
public  longgetKeyID()
     Return the id of the key that created the signature.
public  byte[]getSignature()
    
public  byte[]getSignatureTrailer()
    
public  intgetSignatureType()
    
public  PGPSignatureSubpacketVectorgetUnhashedSubPackets()
    
public  intgetVersion()
     Return the OpenPGP version number for this signature.
public  voidinitVerify(PGPPublicKey pubKey, String provider)
    
public  voidupdate(byte b)
    
public  voidupdate(byte[] bytes)
    
public  voidupdate(byte[] bytes, int off, int length)
    
public  booleanverify()
    
public  booleanverifyCertification(String id, PGPPublicKey key)
     Verify the signature as certifying the passed in public key as associated with the passed in id.
Parameters:
  id - id the key was stored under
Parameters:
  key - the key to be verified.
public  booleanverifyCertification(PGPPublicKey masterKey, PGPPublicKey pubKey)
     Verify a certification for the passed in key against the passed in master key.
Parameters:
  masterKey - the key we are verifying against.
Parameters:
  pubKey - the key we are verifying.
public  booleanverifyCertification(PGPPublicKey pubKey)
     Verify a key certification, such as a revocation, for the passed in key.
Parameters:
  pubKey - the key we are checking.

Field Detail
BINARY_DOCUMENT
final public static int BINARY_DOCUMENT(Code)



CANONICAL_TEXT_DOCUMENT
final public static int CANONICAL_TEXT_DOCUMENT(Code)



CASUAL_CERTIFICATION
final public static int CASUAL_CERTIFICATION(Code)



CERTIFICATION_REVOCATION
final public static int CERTIFICATION_REVOCATION(Code)



DEFAULT_CERTIFICATION
final public static int DEFAULT_CERTIFICATION(Code)



DIRECT_KEY
final public static int DIRECT_KEY(Code)



KEY_REVOCATION
final public static int KEY_REVOCATION(Code)



NO_CERTIFICATION
final public static int NO_CERTIFICATION(Code)



POSITIVE_CERTIFICATION
final public static int POSITIVE_CERTIFICATION(Code)



STAND_ALONE
final public static int STAND_ALONE(Code)



SUBKEY_BINDING
final public static int SUBKEY_BINDING(Code)



SUBKEY_REVOCATION
final public static int SUBKEY_REVOCATION(Code)



TIMESTAMP
final public static int TIMESTAMP(Code)




Constructor Detail
PGPSignature
PGPSignature(BCPGInputStream pIn) throws IOException, PGPException(Code)



PGPSignature
PGPSignature(SignaturePacket sigPacket) throws PGPException(Code)



PGPSignature
PGPSignature(SignaturePacket sigPacket, TrustPacket trustPacket) throws PGPException(Code)




Method Detail
encode
public void encode(OutputStream outStream) throws IOException(Code)



getCreationTime
public Date getCreationTime()(Code)
Return the creation time of the signature. the signature creation time.



getEncoded
public byte[] getEncoded() throws IOException(Code)



getHashAlgorithm
public int getHashAlgorithm()(Code)
Return the hash algorithm associated with this signature. signature hash algorithm.



getHashedSubPackets
public PGPSignatureSubpacketVector getHashedSubPackets()(Code)



getKeyAlgorithm
public int getKeyAlgorithm()(Code)
Return the key algorithm associated with this signature. signature key algorithm.



getKeyID
public long getKeyID()(Code)
Return the id of the key that created the signature. keyID of the signatures corresponding key.



getSignature
public byte[] getSignature() throws PGPException(Code)



getSignatureTrailer
public byte[] getSignatureTrailer()(Code)



getSignatureType
public int getSignatureType()(Code)



getUnhashedSubPackets
public PGPSignatureSubpacketVector getUnhashedSubPackets()(Code)



getVersion
public int getVersion()(Code)
Return the OpenPGP version number for this signature. signature version number.



initVerify
public void initVerify(PGPPublicKey pubKey, String provider) throws NoSuchProviderException, PGPException(Code)



update
public void update(byte b) throws SignatureException(Code)



update
public void update(byte[] bytes) throws SignatureException(Code)



update
public void update(byte[] bytes, int off, int length) throws SignatureException(Code)



verify
public boolean verify() throws PGPException, SignatureException(Code)



verifyCertification
public boolean verifyCertification(String id, PGPPublicKey key) throws PGPException, SignatureException(Code)
Verify the signature as certifying the passed in public key as associated with the passed in id.
Parameters:
  id - id the key was stored under
Parameters:
  key - the key to be verified. true if the signature matches, false otherwise.
throws:
  PGPException -
throws:
  SignatureException -



verifyCertification
public boolean verifyCertification(PGPPublicKey masterKey, PGPPublicKey pubKey) throws SignatureException, PGPException(Code)
Verify a certification for the passed in key against the passed in master key.
Parameters:
  masterKey - the key we are verifying against.
Parameters:
  pubKey - the key we are verifying. true if the certification is valid, false otherwise.
throws:
  SignatureException -
throws:
  PGPException -



verifyCertification
public boolean verifyCertification(PGPPublicKey pubKey) throws SignatureException, PGPException(Code)
Verify a key certification, such as a revocation, for the passed in key.
Parameters:
  pubKey - the key we are checking. true if the certification is valid, false otherwise.
throws:
  SignatureException -
throws:
  PGPException -



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.