public interface RSACipherFactory
This interface may be implemented by an application for plugging in
its own RSA
cipher implementation to be used
for all RSA based Signature engines of this package. The application-specific
factory can be enabled by calling method setRSACipherFactory
of the default RSA
cipher class, e.g.:
// custom RSA cipher implementation class MyRSACipherImpl extends RSA { ... } public class MyRSACipherFactory implements RSACipherFactory { public RSACipherFactory() { } public RSA getInstance() { return new MyRSACipherImpl(); } } // Now tell the RSA Signature library to use the custom RSACiperFactory: RSA.setRSACipherFactory(new MyRSACipherFactory());
Modifier and Type | Method and Description |
---|---|
RSA |
getInstance()
Gets a new
RSA cipher object. |