|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.crypto.auth.callback.Engine
final class Engine
Generic implementation of the getInstance methods in the various engine classes in java.security.
These classes (Signature
for example) can be
thought of as the "chrome, upholstery, and steering wheel", and the SPI
(service provider interface, e.g. SignatureSpi
)
classes can be thought of as the "engine" -- providing the actual
functionality of whatever cryptographic algorithm the instance
represents.
Provider
Method Summary | |
---|---|
(package private) static Object |
getInstance(String service,
String algorithm,
Provider provider)
Get the implementation for algorithm for service service from provider. |
(package private) static Object |
getInstance(String service,
String algorithm,
Provider provider,
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 |
Method Detail |
---|
static Object getInstance(String service, String algorithm, Provider provider) throws InvocationTargetException, NoSuchAlgorithmException
service
- The service name.algorithm
- The name of the algorithm to get.provider
- The provider to get the implementation from.
NoSuchAlgorithmException
- If the implementation cannot be
found or cannot be instantiated.
InvocationTargetException
- If the SPI class's constructor
throws an exception.
IllegalArgumentException
- If any of the three arguments are null.static Object getInstance(String service, String algorithm, Provider provider, Object[] initArgs) throws InvocationTargetException, NoSuchAlgorithmException
service
- The service name.algorithm
- The name of the algorithm to get.provider
- The provider to get the implementation from.initArgs
- The arguments to pass to the SPI class's
constructor (cannot be null).
NoSuchAlgorithmException
- If the implementation cannot be
found or cannot be instantiated.
InvocationTargetException
- If the SPI class's constructor
throws an exception.
IllegalArgumentException
- If any of the four arguments are null.
|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |