Java Doc for Cipher.java in  » Parser » Rats-Parser-Generators » javax » crypto » 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 » Parser » Rats Parser Generators » javax.crypto 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.crypto.Cipher

Cipher
public class Cipher (Code)

version:
   $Revision: 1.1 $
author:
   Jeroen C. van Gelderen (gelderen@cryptix.org)
author:
   Paul Waserbrot (pw@cryptix.org)


Field Summary
final public static  intENCRYPT_MODEDECRYPT_MODEPRIVATE_KEYPUBLIC_KEYSECRET_KEYUNWRAP_MODEWRAP_MODE
    

Constructor Summary
protected  Cipher(CipherSpi cipherSpi, Provider provider, String transformation)
     Constructs a Cipher wrapping the given cipherSpi.

Method Summary
final public  byte[]doFinal()
    
final public  intdoFinal(byte[] output, int outputOffset)
    
final public  byte[]doFinal(byte[] input)
    
final public  byte[]doFinal(byte[] input, int inputOffset, int inputLen)
    
final public  intdoFinal(byte[] input, int inputOffset, int inputLen, byte[] output)
    
final public  intdoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
    
final public  StringgetAlgorithm()
     Returns the name of the transformation implemented by this Cipher.
final public  intgetBlockSize()
     Returns the block size if this Cipher, or 0 if the underlying Cipher doesn't (yet) have a block size.
final public  ExemptionMechanismgetExemptionMechanism()
    
final public  byte[]getIV()
     Returns the IV associated with this Cipher, or null if this Cipher doesn't (yet) have one.
public static  CiphergetInstance(String transformation)
     Creates a Cipher that implements the given transformation.
public static  CiphergetInstance(String transformation, String provider)
     Creates a Cipher that implements the given transformation.
final public  intgetOutputSize(int inputLen)
     Returns the maximum number of bytes that the next update() or doFinal() operation can return, given the length of the input.
final public  AlgorithmParametersgetParameters()
    
final public  ProvidergetProvider()
     Returns this Cipher's Provider.
final public  voidinit(int opmode, Key key)
    
final public  voidinit(int opmode, Key key, SecureRandom random)
    
final public  voidinit(int opmode, Key key, AlgorithmParameterSpec params)
    
final public  voidinit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
    
final public  voidinit(int opmode, Key key, AlgorithmParameters params)
    
final public  voidinit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
    
final public  voidinit(int opmode, Certificate certificate)
    
final public  voidinit(int opmode, Certificate certificate, SecureRandom random)
    
public  StringtoString()
    
final public  Keyunwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
    
final public  byte[]update(byte[] input)
    
final public  byte[]update(byte[] input, int inputOffset, int inputLen)
    
final public  intupdate(byte[] input, int inputOffset, int inputLen, byte[] output)
    
final public  intupdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
    
final public  byte[]wrap(java.security.Key key)
    

Field Detail
ENCRYPT_MODEDECRYPT_MODEPRIVATE_KEYPUBLIC_KEYSECRET_KEYUNWRAP_MODEWRAP_MODE
final public static int ENCRYPT_MODEDECRYPT_MODEPRIVATE_KEYPUBLIC_KEYSECRET_KEYUNWRAP_MODEWRAP_MODE(Code)
Constants used for the init() methods




Constructor Detail
Cipher
protected Cipher(CipherSpi cipherSpi, Provider provider, String transformation)(Code)
Constructs a Cipher wrapping the given cipherSpi.

This method should be private, but is not for backward compatibility.





Method Detail
doFinal
final public byte[] doFinal() throws IllegalStateException, IllegalBlockSizeException, BadPaddingException(Code)



doFinal
final public int doFinal(byte[] output, int outputOffset) throws IllegalStateException, IllegalBlockSizeException, ShortBufferException, BadPaddingException(Code)



doFinal
final public byte[] doFinal(byte[] input) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException(Code)



doFinal
final public byte[] doFinal(byte[] input, int inputOffset, int inputLen) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException(Code)



doFinal
final public int doFinal(byte[] input, int inputOffset, int inputLen, byte[] output) throws IllegalStateException, ShortBufferException, IllegalBlockSizeException, BadPaddingException(Code)



doFinal
final public int doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, IllegalBlockSizeException, BadPaddingException(Code)



getAlgorithm
final public String getAlgorithm()(Code)
Returns the name of the transformation implemented by this Cipher.



getBlockSize
final public int getBlockSize()(Code)
Returns the block size if this Cipher, or 0 if the underlying Cipher doesn't (yet) have a block size.



getExemptionMechanism
final public ExemptionMechanism getExemptionMechanism()(Code)



getIV
final public byte[] getIV()(Code)
Returns the IV associated with this Cipher, or null if this Cipher doesn't (yet) have one.

This is a rather brain damaged convenience method, because there is no corresponding setIV method (you need to use the ParameterSpec crap instead).




getInstance
public static Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException(Code)
Creates a Cipher that implements the given transformation.

This call will search all installed Providers in preference order and returns the first matching transformation.

Transformation is specified as the triple "Algorithm/Mode/Padding". We currently do not support transformation of type "Algorithm" with defaults for mode and padding.
Parameters:
  transformation - The requested transformation.
throws:
  NoSuchAlgorithmException - If the given Algorithm/Mode/ combination cannot be found.
throws:
  NoSuchPaddingException - If the given //Padding cannot be found.




getInstance
public static Cipher getInstance(String transformation, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException(Code)
Creates a Cipher that implements the given transformation.

This call searches the given provider only.

Transformation is specified as the triple "Algorithm/Mode/Padding". We currently do not support transformation of type "Algorithm" with defaults for mode and padding.
Parameters:
  transformation - The requested transformation.
throws:
  NoSuchAlgorithmException - If the given Algorithm/Mode/ combination cannot be found.
throws:
  NoSuchPaddingException - If the given //Padding cannot be found.
throws:
  NoSuchProviderException - If the given provider is not installed.




getOutputSize
final public int getOutputSize(int inputLen) throws IllegalStateException(Code)
Returns the maximum number of bytes that the next update() or doFinal() operation can return, given the length of the input.

This basically returns the sum of buffered data, padding, and input.




getParameters
final public AlgorithmParameters getParameters()(Code)



getProvider
final public Provider getProvider()(Code)
Returns this Cipher's Provider.



init
final public void init(int opmode, Key key) throws InvalidKeyException(Code)



init
final public void init(int opmode, Key key, SecureRandom random) throws InvalidKeyException(Code)



init
final public void init(int opmode, Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException(Code)



init
final public void init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException(Code)



init
final public void init(int opmode, Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException(Code)



init
final public void init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException(Code)



init
final public void init(int opmode, Certificate certificate) throws InvalidKeyException(Code)



init
final public void init(int opmode, Certificate certificate, SecureRandom random) throws InvalidKeyException(Code)



toString
public String toString()(Code)



unwrap
final public Key unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws IllegalStateException, InvalidKeyException, NoSuchAlgorithmException(Code)



update
final public byte[] update(byte[] input) throws IllegalStateException(Code)



update
final public byte[] update(byte[] input, int inputOffset, int inputLen) throws IllegalStateException(Code)



update
final public int update(byte[] input, int inputOffset, int inputLen, byte[] output) throws IllegalStateException, ShortBufferException(Code)



update
final public int update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException(Code)



wrap
final public byte[] wrap(java.security.Key key) throws IllegalStateException, IllegalBlockSizeException, InvalidKeyException(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.