diff options
Diffstat (limited to 'libjava/classpath/javax/crypto')
-rw-r--r-- | libjava/classpath/javax/crypto/Cipher.java | 6 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/CipherOutputStream.java | 12 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/ExemptionMechanism.java | 6 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/KeyAgreement.java | 6 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/KeyGenerator.java | 6 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/Mac.java | 8 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/MacSpi.java | 4 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/SecretKeyFactory.java | 6 | ||||
-rw-r--r-- | libjava/classpath/javax/crypto/spec/PBEKeySpec.java | 24 |
9 files changed, 39 insertions, 39 deletions
diff --git a/libjava/classpath/javax/crypto/Cipher.java b/libjava/classpath/javax/crypto/Cipher.java index 7c18e6f6ab3..9b7d8f9fe69 100644 --- a/libjava/classpath/javax/crypto/Cipher.java +++ b/libjava/classpath/javax/crypto/Cipher.java @@ -163,7 +163,7 @@ public class Cipher * The installed providers are tried in order for an implementation, and the * first appropriate instance is returned. If no installed provider can * provide the implementation, an appropriate exception is thrown. - * + * * @param transformation The transformation to create. * @return An appropriate cipher for this transformation. * @throws NoSuchAlgorithmException If no installed provider can supply the @@ -201,7 +201,7 @@ public class Cipher /** * Creates a new cipher instance for the given transformation and the named * provider. - * + * * @param transformation The transformation to create. * @param provider The name of the provider to use. * @return An appropriate cipher for this transformation. @@ -228,7 +228,7 @@ public class Cipher /** * Creates a new cipher instance for a given transformation from a given * provider. - * + * * @param transformation The transformation to create. * @param provider The provider to use. * @return An appropriate cipher for this transformation. diff --git a/libjava/classpath/javax/crypto/CipherOutputStream.java b/libjava/classpath/javax/crypto/CipherOutputStream.java index 960f6fb60ab..170feed4751 100644 --- a/libjava/classpath/javax/crypto/CipherOutputStream.java +++ b/libjava/classpath/javax/crypto/CipherOutputStream.java @@ -45,7 +45,7 @@ import java.io.OutputStream; /** * A filtered output stream that transforms data written to it with a * {@link Cipher} before sending it to the underlying output stream. - * + * * @author Casey Marshall (csm@gnu.org) */ public class CipherOutputStream extends FilterOutputStream @@ -56,7 +56,7 @@ public class CipherOutputStream extends FilterOutputStream /** * Create a new cipher output stream. The cipher argument must have already * been initialized. - * + * * @param out The sink for transformed data. * @param cipher The cipher to transform data with. */ @@ -82,7 +82,7 @@ public class CipherOutputStream extends FilterOutputStream * This method will first invoke the {@link Cipher#doFinal()} method of the * underlying {@link Cipher}, and writes the output of that method to the * sink output stream. - * + * * @throws IOException If an I/O error occurs, or if an error is caused by * finalizing the transformation. */ @@ -114,7 +114,7 @@ public class CipherOutputStream extends FilterOutputStream /** * Write a single byte to the output stream. - * + * * @param b The next byte. * @throws IOException If an I/O error occurs, or if the underlying cipher is * not in the correct state to transform data. @@ -126,7 +126,7 @@ public class CipherOutputStream extends FilterOutputStream /** * Write a byte array to the output stream. - * + * * @param buf The next bytes. * @throws IOException If an I/O error occurs, or if the underlying cipher is * not in the correct state to transform data. @@ -138,7 +138,7 @@ public class CipherOutputStream extends FilterOutputStream /** * Write a portion of a byte array to the output stream. - * + * * @param buf The next bytes. * @param off The offset in the byte array to start. * @param len The number of bytes to write. diff --git a/libjava/classpath/javax/crypto/ExemptionMechanism.java b/libjava/classpath/javax/crypto/ExemptionMechanism.java index baf6bad99e0..b8b17c4afed 100644 --- a/libjava/classpath/javax/crypto/ExemptionMechanism.java +++ b/libjava/classpath/javax/crypto/ExemptionMechanism.java @@ -90,7 +90,7 @@ public class ExemptionMechanism /** * Create an instance of <code>ExemptionMechanism</code> for a designated * <code>mechanism</code> from the first Security Provider offering it. - * + * * @param mechanism the name of the exemption mechanism to create. * @return a newly created instance of <code>ExemptionMechanism</code>. * @throws IllegalArgumentException if the provider is null. @@ -121,7 +121,7 @@ public class ExemptionMechanism /** * Create an instance of <code>ExemptionMechanism</code> for a designated * <code>mechanism</code> from a named <code>provider</code>. - * + * * @param mechanism the name of the exemption mechanism to create. * @param provider the security provider to provide the exemption * <code>mechanism</code>. @@ -149,7 +149,7 @@ public class ExemptionMechanism /** * Create an instance of <code>ExemptionMechanism</code> for a designated * <code>mechanism</code> from a designated <code>provider</code>. - * + * * @param mechanism the name of the exemption mechanism to create. * @param provider the security provider to provide the exemption * <code>mechanism</code>. diff --git a/libjava/classpath/javax/crypto/KeyAgreement.java b/libjava/classpath/javax/crypto/KeyAgreement.java index 49003109106..fe3e226fafb 100644 --- a/libjava/classpath/javax/crypto/KeyAgreement.java +++ b/libjava/classpath/javax/crypto/KeyAgreement.java @@ -104,7 +104,7 @@ public class KeyAgreement /** * Get an implementation of an algorithm from the first provider that * implements it. - * + * * @param algorithm The name of the algorithm to get. * @return The proper KeyAgreement instacne, if found. * @throws NoSuchAlgorithmException If the specified algorithm is not @@ -133,7 +133,7 @@ public class KeyAgreement /** * Return an implementation of an algorithm from a named provider. - * + * * @param algorithm The name of the algorithm to create. * @param provider The name of the provider from which to get the * implementation. @@ -158,7 +158,7 @@ public class KeyAgreement /** * Return an implementation of an algorithm from a specific provider. - * + * * @param algorithm The name of the algorithm to get. * @param provider The provider from which to get the implementation. * @return The proper KeyAgreement instance, if found. diff --git a/libjava/classpath/javax/crypto/KeyGenerator.java b/libjava/classpath/javax/crypto/KeyGenerator.java index 79334e9e05e..f0c80e1dbdc 100644 --- a/libjava/classpath/javax/crypto/KeyGenerator.java +++ b/libjava/classpath/javax/crypto/KeyGenerator.java @@ -96,7 +96,7 @@ public class KeyGenerator /** * Create a new key generator, returning the first available implementation. - * + * * @param algorithm The generator algorithm name. * @throws NoSuchAlgorithmException If the specified algorithm does not exist. * @throws IllegalArgumentException if <code>algorithm</code> is @@ -123,7 +123,7 @@ public class KeyGenerator /** * Create a new key generator from the named provider. - * + * * @param algorithm The generator algorithm name. * @param provider The name of the provider to use. * @return An appropriate key generator, if found. @@ -147,7 +147,7 @@ public class KeyGenerator /** * Create a new key generator from the supplied provider. - * + * * @param algorithm The generator algorithm name. * @param provider The provider to use. * @return An appropriate key generator, if found. diff --git a/libjava/classpath/javax/crypto/Mac.java b/libjava/classpath/javax/crypto/Mac.java index 2a269ab8084..9175e580011 100644 --- a/libjava/classpath/javax/crypto/Mac.java +++ b/libjava/classpath/javax/crypto/Mac.java @@ -111,7 +111,7 @@ public class Mac implements Cloneable /** * Create an instance of the named algorithm from the first provider with an * appropriate implementation. - * + * * @param algorithm The name of the algorithm. * @return An appropriate Mac instance, if the specified algorithm is * implemented by a provider. @@ -141,7 +141,7 @@ public class Mac implements Cloneable /** * Create an instance of the named algorithm from the named provider. - * + * * @param algorithm The name of the algorithm. * @param provider The name of the provider. * @return An appropriate Mac instance, if the specified algorithm is @@ -166,7 +166,7 @@ public class Mac implements Cloneable /** * Create an instance of the named algorithm from a provider. - * + * * @param algorithm The name of the algorithm. * @param provider The provider. * @return An appropriate Mac instance, if the specified algorithm is @@ -417,7 +417,7 @@ public class Mac implements Cloneable throw new IllegalStateException ("not initialized"); macSpi.engineUpdate(buffer); } - + /** * Clone this instance, if the underlying implementation supports it. * diff --git a/libjava/classpath/javax/crypto/MacSpi.java b/libjava/classpath/javax/crypto/MacSpi.java index 853bd66aa0f..a03aa6983c9 100644 --- a/libjava/classpath/javax/crypto/MacSpi.java +++ b/libjava/classpath/javax/crypto/MacSpi.java @@ -143,10 +143,10 @@ public abstract class MacSpi * @param length The number of bytes to update. */ protected abstract void engineUpdate(byte[] input, int offset, int length); - + /** * Update this MAC with the remaining bytes of a buffer. - * + * * @param buffer The input buffer. * @since 1.5 */ diff --git a/libjava/classpath/javax/crypto/SecretKeyFactory.java b/libjava/classpath/javax/crypto/SecretKeyFactory.java index 1c857d274a8..9749a8285fc 100644 --- a/libjava/classpath/javax/crypto/SecretKeyFactory.java +++ b/libjava/classpath/javax/crypto/SecretKeyFactory.java @@ -96,7 +96,7 @@ public class SecretKeyFactory /** * Create a new secret key factory from the first appropriate instance. - * + * * @param algorithm The algorithm name. * @return The appropriate key factory, if found. * @throws NoSuchAlgorithmException If no provider implements the specified @@ -125,7 +125,7 @@ public class SecretKeyFactory /** * Create a new secret key factory from the named provider. - * + * * @param algorithm The algorithm name. * @param provider The provider name. * @return The appropriate key factory, if found. @@ -150,7 +150,7 @@ public class SecretKeyFactory /** * Create a new secret key factory from the specified provider. - * + * * @param algorithm The algorithm name. * @param provider The provider. * @return The appropriate key factory, if found. diff --git a/libjava/classpath/javax/crypto/spec/PBEKeySpec.java b/libjava/classpath/javax/crypto/spec/PBEKeySpec.java index 54b821a79fd..f0ffa379a4c 100644 --- a/libjava/classpath/javax/crypto/spec/PBEKeySpec.java +++ b/libjava/classpath/javax/crypto/spec/PBEKeySpec.java @@ -78,7 +78,7 @@ public class PBEKeySpec implements KeySpec /** The password state */ private boolean passwordValid = true; - + // Constructors. // ------------------------------------------------------------------------ @@ -86,13 +86,13 @@ public class PBEKeySpec implements KeySpec * Create a new PBE key spec with just a password. * <p> * A copy of the password argument is stored instead of the argument itself. - * + * * @param password The password char array. */ public PBEKeySpec(char[] password) { setPassword(password); - + // load the default values for unspecified variables. salt = null; iterationCount = 0; @@ -104,7 +104,7 @@ public class PBEKeySpec implements KeySpec * <p> * A copy of the password and salt arguments are stored instead of the * arguments themselves. - * + * * @param password The password char array. * @param salt The salt bytes. * @param iterationCount The iteration count. @@ -128,7 +128,7 @@ public class PBEKeySpec implements KeySpec * <p> * A copy of the password and salt arguments are stored instead of the * arguments themselves. - * + * * @param password The password char array. * @param salt The salt bytes. * @param iterationCount The iteration count. @@ -161,7 +161,7 @@ public class PBEKeySpec implements KeySpec return; for (int i = 0; i < password.length; i++) password[i] = '\u0000'; - + // since the password is cleared, it is no longer valid passwordValid = false; } @@ -190,7 +190,7 @@ public class PBEKeySpec implements KeySpec * Get the password character array copy. * <p> * This returns a copy of the password, not the password itself. - * + * * @return a clone of the password. * @throws IllegalStateException If {@link #clearPassword()} has already been * called. @@ -207,7 +207,7 @@ public class PBEKeySpec implements KeySpec * Get the salt bytes array copy. * <p> * This returns a copy of the salt, not the salt itself. - * + * * @return The salt. */ public final byte[] getSalt() @@ -221,7 +221,7 @@ public class PBEKeySpec implements KeySpec * Set the password char array. * <p> * A copy of the password argument is stored instead of the argument itself. - * + * * @param password The password to be set */ private void setPassword(char[] password) @@ -238,7 +238,7 @@ public class PBEKeySpec implements KeySpec * Set the salt byte array. * <p> * A copy of the salt arguments is stored instead of the argument itself. - * + * * @param salt The salt to be set. * @throws NullPointerException If the salt is null. * @throws IllegalArgumentException If the salt is an empty array. @@ -253,7 +253,7 @@ public class PBEKeySpec implements KeySpec /** * Set the iterationCount. - * + * * @param iterationCount The iteration count to be set. * @throws IllegalArgumentException If the iterationCount is negative. */ @@ -267,7 +267,7 @@ public class PBEKeySpec implements KeySpec /** * Set the keyLength. - * + * * @param keyLength The keyLength to be set. * @throws IllegalArgumentException if the keyLength is negative. */ |