|
|||||||||
| Home >> All >> gnu >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.java.security
Class Engine

java.lang.Objectgnu.java.security.Engine
- public final class Engine
- extends java.lang.Object
Generic implementation of the getInstance methods in the various engine classes in java.security.
These classes (java.security.Signature for example) can be thought of as the "chrome, upholstery, and steering wheel", and the SPI (service provider interface, e.g. java.security.SignatureSpi) classes can be thought of as the "engine" -- providing the actual functionality of whatever cryptographic algorithm the instance represents.
| Field Summary | |
private static java.lang.String |
ALG_ALIAS
Prefix for aliases. |
private static int |
MAX_ALIASES
Maximum number of aliases to try. |
private static java.lang.Object[] |
NO_ARGS
Argument list for no-argument constructors. |
| Constructor Summary | |
private |
Engine()
This class cannot be instantiated. |
| Method Summary | |
private static java.lang.reflect.Constructor |
getCompatibleConstructor(java.lang.Class clazz,
java.lang.Object[] initArgs)
Find a constructor in the given class that can take the specified argument list, allowing any of which to be null. |
static java.lang.Object |
getInstance(java.lang.String service,
java.lang.String algorithm,
java.security.Provider provider)
Get the implementation for algorithm for service service from provider. |
static java.lang.Object |
getInstance(java.lang.String service,
java.lang.String algorithm,
java.security.Provider provider,
java.lang.Object[] initArgs)
Get the implementation for algorithm for service service from provider, passing initArgs to the SPI class's constructor (which cannot be null; pass a zero-length array if the SPI takes no arguments). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ALG_ALIAS
private static final java.lang.String ALG_ALIAS
- Prefix for aliases.
- See Also:
- Constant Field Values
MAX_ALIASES
private static final int MAX_ALIASES
- Maximum number of aliases to try.
- See Also:
- Constant Field Values
NO_ARGS
private static final java.lang.Object[] NO_ARGS
- Argument list for no-argument constructors.
| Constructor Detail |
Engine
private Engine()
- This class cannot be instantiated.
| Method Detail |
getInstance
public static java.lang.Object getInstance(java.lang.String service, java.lang.String algorithm, java.security.Provider provider) throws java.lang.reflect.InvocationTargetException, java.security.NoSuchAlgorithmException
- Get the implementation for algorithm for service
service from provider. The service is e.g.
"Signature", and the algorithm "DSA".
getInstance
public static java.lang.Object getInstance(java.lang.String service, java.lang.String algorithm, java.security.Provider provider, java.lang.Object[] initArgs) throws java.lang.reflect.InvocationTargetException, java.security.NoSuchAlgorithmException
- Get the implementation for algorithm for service
service from provider, passing initArgs to the
SPI class's constructor (which cannot be null; pass a zero-length
array if the SPI takes no arguments). The service is e.g.
"Signature", and the algorithm "DSA".
getCompatibleConstructor
private static java.lang.reflect.Constructor getCompatibleConstructor(java.lang.Class clazz, java.lang.Object[] initArgs) throws java.lang.NoSuchMethodException
- Find a constructor in the given class that can take the specified
argument list, allowing any of which to be null.
|
|||||||||
| Home >> All >> gnu >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
gnu.java.security.Engine