279 public void setParameter(AlgorithmParameterSpec params) throws XMLSignatureException {
280 signatureAlgorithm.engineSetParameter(params);
281 }
282
283 /**
284 * Proxy method for {@link java.security.Signature#initVerify(java.security.PublicKey)}
285 * which is executed on the internal {@link java.security.Signature} object.
286 *
287 * @param verificationKey
288 * @throws XMLSignatureException
289 */
290 public void initVerify(Key verificationKey) throws XMLSignatureException {
291 signatureAlgorithm.engineInitVerify(verificationKey);
292 }
293
294 /**
295 * Proxy method for {@link java.security.Signature#verify(byte[])}
296 * which is executed on the internal {@link java.security.Signature} object.
297 *
298 * @param signature
299 * @return true if if the signature is valid.
300 *
301 * @throws XMLSignatureException
302 */
303 public boolean verify(byte[] signature) throws XMLSignatureException {
304 return signatureAlgorithm.engineVerify(signature);
305 }
306
307 /**
308 * Returns the URI representation of Transformation algorithm
309 *
310 * @return the URI representation of Transformation algorithm
311 */
312 public final String getURI() {
313 return constructionElement.getAttributeNS(null, Constants._ATT_ALGORITHM);
314 }
315
316 /**
317 * Registers implementing class of the Transform algorithm with algorithmURI
318 *
319 * @param algorithmURI algorithmURI URI representation of <code>Transform algorithm</code>.
|
279 public void setParameter(AlgorithmParameterSpec params) throws XMLSignatureException {
280 signatureAlgorithm.engineSetParameter(params);
281 }
282
283 /**
284 * Proxy method for {@link java.security.Signature#initVerify(java.security.PublicKey)}
285 * which is executed on the internal {@link java.security.Signature} object.
286 *
287 * @param verificationKey
288 * @throws XMLSignatureException
289 */
290 public void initVerify(Key verificationKey) throws XMLSignatureException {
291 signatureAlgorithm.engineInitVerify(verificationKey);
292 }
293
294 /**
295 * Proxy method for {@link java.security.Signature#verify(byte[])}
296 * which is executed on the internal {@link java.security.Signature} object.
297 *
298 * @param signature
299 * @return true if the signature is valid.
300 *
301 * @throws XMLSignatureException
302 */
303 public boolean verify(byte[] signature) throws XMLSignatureException {
304 return signatureAlgorithm.engineVerify(signature);
305 }
306
307 /**
308 * Returns the URI representation of Transformation algorithm
309 *
310 * @return the URI representation of Transformation algorithm
311 */
312 public final String getURI() {
313 return constructionElement.getAttributeNS(null, Constants._ATT_ALGORITHM);
314 }
315
316 /**
317 * Registers implementing class of the Transform algorithm with algorithmURI
318 *
319 * @param algorithmURI algorithmURI URI representation of <code>Transform algorithm</code>.
|