Lines Matching defs:Signature

50  * The Signature class is used to provide applications the functionality
62 * <p> A Signature object can be used to generate and verify digital
65 * <p> There are three phases to the use of a Signature object for
97 * this <code>Signature</code> class; all the methods in
102 * following standard <code>Signature</code> algorithms:
109 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Signature">
110 * Signature section</a> of the
119 public abstract class Signature extends SignatureSpi {
122 Debug.getInstance("jca", "Signature");
158 * Creates a Signature object for the specified algorithm.
161 * See the Signature section in the <a href=
162 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Signature">
166 protected Signature(String algorithm) {
179 new ServiceId("Signature", "NONEwithRSA"),
188 * Returns a Signature object that implements the specified signature
193 * A new Signature object encapsulating the
201 * See the Signature section in the <a href=
202 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Signature">
206 * @return the new Signature object.
209 * Signature implementation for the
214 public static Signature getInstance(String algorithm)
220 list = GetInstance.getServices("Signature", algorithm);
225 (algorithm + " Signature not available");
227 // try services until we find an Spi or a working Signature subclass
234 // must be a subclass of Signature, disable dynamic selection
247 private static Signature getInstance(Instance instance, String algorithm) {
248 Signature sig;
249 if (instance.impl instanceof Signature) {
250 sig = (Signature)instance.impl;
287 // Signature extends SignatureSpi
289 // instance of SignatureSpi but not Signature
291 && (instance instanceof Signature == false);
308 * Returns a Signature object that implements the specified signature
311 * <p> A new Signature object encapsulating the
320 * See the Signature section in the <a href=
321 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Signature">
327 * @return the new Signature object.
341 public static Signature getInstance(String algorithm, String provider)
356 ("Signature", SignatureSpi.class, algorithm, provider);
361 * Returns a Signature object that implements the specified
364 * <p> A new Signature object encapsulating the
370 * See the Signature section in the <a href=
371 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Signature">
377 * @return the new Signature object.
389 public static Signature getInstance(String algorithm, Provider provider)
399 ("Signature", SignatureSpi.class, algorithm, provider);
405 private static Signature getInstanceRSA(Provider p)
407 // try Signature first
408 Service s = p.getService("Signature", RSA_SIGNATURE);
418 // throw Signature style exception message to avoid confusion,
775 return "Signature object: " + getAlgorithm() + initState;
890 * rather than from Signature. It represents a Signature with an
896 * Note: All SPI methods from the original Signature class have been
898 * been interposed in the hierarchy between the API (Signature)
902 private static class Delegate extends Signature {
950 Signature that =
951 new Delegate(sigSpiClone, ((Signature)this).algorithm);
952 that.provider = ((Signature)this).provider;
998 debug.println("Signature.init() not first method "