tribble.crypto
Class MyProvider
java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
java.security.Provider
tribble.crypto.MyProvider
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class MyProvider
- extends java.security.Provider
Cryptographic implementation provider for this package.
References
java.sun.com/docs/1.4.0/guide/security/jce/HowToImplAJCEProvider.html.
- Since:
- JCE 1.2 / JRE 1.4, 2005-04-01
- Version:
- API 2, $Revision: 1.3 $ $Date: 2005/09/11 03:20:07 $
- Author:
- David R. Tribble
(david@tribble.com).
Copyright ©2005 by David R. Tribble, all rights reserved.
Permission is granted to freely use and distribute this source code
provided that the original copyright and authorship notices remain
intact.
- See Also:
Cipher
,
Serialized Form
Fields inherited from class java.util.Properties |
defaults |
Method Summary |
static Cipher |
getInstance(java.lang.String transform)
Create an instance of a cipher algorithm. |
static Cipher |
getInstance(java.lang.String alg,
java.lang.String pad,
java.lang.String mode)
Create an instance of a cipher algorithm. |
Methods inherited from class java.security.Provider |
clear, entrySet, getInfo, getName, getVersion, keySet, load, put, putAll, remove, toString, values |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, size |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
PROVIDER
public static final MyProvider PROVIDER
- Cryptographic provider embodied by this package.
getInstance
public static Cipher getInstance(java.lang.String transform)
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException
- Create an instance of a cipher algorithm.
- Parameters:
transform
- Cryptographic cipher transform, which is of the form "alg"
or "alg/pad/mode".
- Returns:
- A cipher object of the specified type.
+REDO
- Throws:
...
- ...
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
- Since:
- 1.2, 2005-09-09
getInstance
public static Cipher getInstance(java.lang.String alg,
java.lang.String pad,
java.lang.String mode)
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException
- Create an instance of a cipher algorithm.
- Parameters:
alg
- Cryptographic cipher algorithm name (e.g., "AES",
"IDEA", etc.).pad
- Padding scheme (e.g., "NoPadding", "PKCS5Padding",
etc.); if this is empty ("") or null, a default scheme is used.
See the PADDING_XXX
constants.mode
- Cryptographic operating mode (e.g., "ECB", "CBC",
"CFB", etc.); if this is empty ("") or null, a default
mode is used.
See the MODE_XXX
constants.
- Returns:
- A cipher object of the specified type.
+REDO
- Throws:
...
- ...
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
- Since:
- 1.2, 2005-09-09