Lines Matching refs:transformation

58  * requested <i>transformation</i> to it. Optionally, the name of a provider
61 * <p>A <i>transformation</i> is a string that describes the operation (or
63 * output. A transformation always includes the name of a cryptographic
67 * <p> A transformation is of the form:<p>
77 * For example, the following is a valid transformation:<p>
200 // The transformation
201 private String transformation;
244 * @param transformation the transformation
248 String transformation) {
257 this.transformation = transformation;
266 * @param transformation the transformation
268 Cipher(CipherSpi cipherSpi, String transformation) {
270 this.transformation = transformation;
276 Iterator serviceIterator, String transformation, List transforms) {
281 this.transformation = transformation;
285 private static String[] tokenizeTransformation(String transformation)
287 if (transformation == null) {
288 throw new NoSuchAlgorithmException("No transformation given");
291 * array containing the components of a Cipher transformation:
299 StringTokenizer parser = new StringTokenizer(transformation, "/");
305 throw new NoSuchAlgorithmException("Invalid transformation"
307 transformation);
310 throw new NoSuchAlgorithmException("Invalid transformation " +
311 "format:" + transformation);
314 throw new NoSuchAlgorithmException("Invalid transformation:" +
316 + transformation);
410 private static List getTransforms(String transformation)
412 String[] parts = tokenizeTransformation(transformation);
453 * transformation.
464 * @param transformation the name of the transformation, e.g.,
469 * for information about standard transformation names.
471 * @return a cipher that implements the requested transformation.
473 * @exception NoSuchAlgorithmException if <code>transformation</code>
478 * @exception NoSuchPaddingException if <code>transformation</code>
483 public static final Cipher getInstance(String transformation)
486 List transforms = getTransforms(transformation);
513 return new Cipher(null, s, t, transformation, transforms);
518 return new Cipher(spi, s, t, transformation, transforms);
525 ("Cannot find any provider supporting " + transformation, failure);
530 * transformation.
540 * @param transformation the name of the transformation,
545 * for information about standard transformation names.
549 * @return a cipher that implements the requested transformation.
551 * @exception NoSuchAlgorithmException if <code>transformation</code>
559 * @exception NoSuchPaddingException if <code>transformation</code>
567 public static final Cipher getInstance(String transformation,
580 return getInstance(transformation, p);
585 * transformation.
592 * @param transformation the name of the transformation,
597 * for information about standard transformation names.
601 * @return a cipher that implements the requested transformation.
603 * @exception NoSuchAlgorithmException if <code>transformation</code>
608 * @exception NoSuchPaddingException if <code>transformation</code>
616 public static final Cipher getInstance(String transformation,
624 List transforms = getTransforms(transformation);
656 Cipher cipher = new Cipher(spi, transformation);
674 ("No such algorithm: " + transformation, failure);
685 cryptoPerm = getConfiguredPermission(transformation);
904 return this.transformation;
1054 // transformation so that the perm check would
1057 int index = transformation.indexOf('/');
1059 algComponent = transformation.substring(0, index);
1061 algComponent = transformation;
2499 String transformation) throws NullPointerException,
2501 if (transformation == null) throw new NullPointerException();
2502 String[] parts = tokenizeTransformation(transformation);
2507 * Returns the maximum key length for the specified transformation
2517 * @param transformation the cipher transformation.
2519 * @exception NullPointerException if <code>transformation</code> is null.
2520 * @exception NoSuchAlgorithmException if <code>transformation</code>
2521 * is not a valid transformation, i.e. in the form of "algorithm" or
2525 public static final int getMaxAllowedKeyLength(String transformation)
2527 CryptoPermission cp = getConfiguredPermission(transformation);
2536 * parameters for the specified transformation in the policy file,
2539 * @param transformation the cipher transformation.
2542 * @exception NullPointerException if <code>transformation</code>
2544 * @exception NoSuchAlgorithmException if <code>transformation</code>
2545 * is not a valid transformation, i.e. in the form of "algorithm" or
2550 String transformation) throws NoSuchAlgorithmException {
2551 CryptoPermission cp = getConfiguredPermission(transformation);