diff options
Diffstat (limited to 'libjava/classpath/java/security/spec')
16 files changed, 97 insertions, 97 deletions
diff --git a/libjava/classpath/java/security/spec/AlgorithmParameterSpec.java b/libjava/classpath/java/security/spec/AlgorithmParameterSpec.java index 25506f55cfe..bc877e3126a 100644 --- a/libjava/classpath/java/security/spec/AlgorithmParameterSpec.java +++ b/libjava/classpath/java/security/spec/AlgorithmParameterSpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -39,13 +39,13 @@ exception statement from your version. */ package java.security.spec; /** - A transparent interface for Algorithm Parameter Specifications. - It contains no member functions. It is used to group - algorithm parameter classes. + A transparent interface for Algorithm Parameter Specifications. + It contains no member functions. It is used to group + algorithm parameter classes. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public interface AlgorithmParameterSpec { diff --git a/libjava/classpath/java/security/spec/DSAParameterSpec.java b/libjava/classpath/java/security/spec/DSAParameterSpec.java index 7e263291c03..f7f6731104a 100644 --- a/libjava/classpath/java/security/spec/DSAParameterSpec.java +++ b/libjava/classpath/java/security/spec/DSAParameterSpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -62,19 +62,19 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams * @param q the sub-prime * @param g the base */ - public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) + public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) { this.p = p; this.q = q; this.g = g; } - + /** * Returns p for the DSA algorithm. * * @return Returns the requested BigInteger */ - public BigInteger getP() + public BigInteger getP() { return this.p; } @@ -84,7 +84,7 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams * * @return Returns the requested BigInteger */ - public BigInteger getQ() + public BigInteger getQ() { return this.q; } @@ -98,4 +98,4 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams { return this.g; } -}
\ No newline at end of file +} diff --git a/libjava/classpath/java/security/spec/DSAPrivateKeySpec.java b/libjava/classpath/java/security/spec/DSAPrivateKeySpec.java index 7415fa11a45..19af107e6f4 100644 --- a/libjava/classpath/java/security/spec/DSAPrivateKeySpec.java +++ b/libjava/classpath/java/security/spec/DSAPrivateKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -40,14 +40,14 @@ package java.security.spec; import java.math.BigInteger; /** - DSA Private Key class Specification. Used to maintain the DSA - Private Keys. + DSA Private Key class Specification. Used to maintain the DSA + Private Keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ -public class DSAPrivateKeySpec implements KeySpec +public class DSAPrivateKeySpec implements KeySpec { private BigInteger x = null; private BigInteger p = null; @@ -62,7 +62,7 @@ public class DSAPrivateKeySpec implements KeySpec @param q the sub-prime @param g the base */ - public DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g) + public DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g) { this.x = x; this.p = p; @@ -75,7 +75,7 @@ public class DSAPrivateKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getX() + public BigInteger getX() { return this.x; } @@ -85,7 +85,7 @@ public class DSAPrivateKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getP() + public BigInteger getP() { return this.p; } @@ -95,7 +95,7 @@ public class DSAPrivateKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getQ() + public BigInteger getQ() { return this.q; } @@ -105,7 +105,7 @@ public class DSAPrivateKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getG() + public BigInteger getG() { return this.g; } diff --git a/libjava/classpath/java/security/spec/DSAPublicKeySpec.java b/libjava/classpath/java/security/spec/DSAPublicKeySpec.java index ac1310c1caa..751844bcc2c 100644 --- a/libjava/classpath/java/security/spec/DSAPublicKeySpec.java +++ b/libjava/classpath/java/security/spec/DSAPublicKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -40,14 +40,14 @@ package java.security.spec; import java.math.BigInteger; /** - DSA Public Key class Specification. Used to maintain the DSA - Public Keys. + DSA Public Key class Specification. Used to maintain the DSA + Public Keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ -public class DSAPublicKeySpec implements KeySpec +public class DSAPublicKeySpec implements KeySpec { private BigInteger y = null; private BigInteger p = null; @@ -62,7 +62,7 @@ public class DSAPublicKeySpec implements KeySpec @param q the sub-prime @param g the base */ - public DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g) + public DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g) { this.y = y; this.p = p; @@ -75,7 +75,7 @@ public class DSAPublicKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getY() + public BigInteger getY() { return this.y; } @@ -85,7 +85,7 @@ public class DSAPublicKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getP() + public BigInteger getP() { return this.p; } @@ -95,7 +95,7 @@ public class DSAPublicKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getQ() + public BigInteger getQ() { return this.q; } @@ -105,7 +105,7 @@ public class DSAPublicKeySpec implements KeySpec @return Returns the requested BigInteger */ - public BigInteger getG() + public BigInteger getG() { return this.g; } diff --git a/libjava/classpath/java/security/spec/EncodedKeySpec.java b/libjava/classpath/java/security/spec/EncodedKeySpec.java index c5baf55fd7a..93e15838558 100644 --- a/libjava/classpath/java/security/spec/EncodedKeySpec.java +++ b/libjava/classpath/java/security/spec/EncodedKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -39,12 +39,12 @@ exception statement from your version. */ package java.security.spec; /** - Encoded Key Specification class which is used to store - byte encoded keys. + Encoded Key Specification class which is used to store + byte encoded keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public abstract class EncodedKeySpec implements KeySpec { @@ -56,7 +56,7 @@ public abstract class EncodedKeySpec implements KeySpec @param encodedKey A key to store */ - public EncodedKeySpec(byte[] encodedKey) + public EncodedKeySpec(byte[] encodedKey) { this.encodedKey = encodedKey; } @@ -66,7 +66,7 @@ public abstract class EncodedKeySpec implements KeySpec @returns the encoded key */ - public byte[] getEncoded() + public byte[] getEncoded() { return this.encodedKey; } @@ -75,8 +75,8 @@ public abstract class EncodedKeySpec implements KeySpec Returns the name of the key format used. This name is the format such as "PKCS#8" or "X.509" which - if it matches a Key class name of the same type can be - transformed using the apporiate KeyFactory. + if it matches a Key class name of the same type can be + transformed using the apporiate KeyFactory. @return a string representing the name */ diff --git a/libjava/classpath/java/security/spec/InvalidParameterSpecException.java b/libjava/classpath/java/security/spec/InvalidParameterSpecException.java index 481e11e306b..ff34565f1d6 100644 --- a/libjava/classpath/java/security/spec/InvalidParameterSpecException.java +++ b/libjava/classpath/java/security/spec/InvalidParameterSpecException.java @@ -60,7 +60,7 @@ public class InvalidParameterSpecException extends GeneralSecurityException /** * Constructs an InvalidParameterSpecException without a message string. */ - public InvalidParameterSpecException() + public InvalidParameterSpecException() { } diff --git a/libjava/classpath/java/security/spec/KeySpec.java b/libjava/classpath/java/security/spec/KeySpec.java index 93f1a6db277..13c7dad4229 100644 --- a/libjava/classpath/java/security/spec/KeySpec.java +++ b/libjava/classpath/java/security/spec/KeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -39,14 +39,14 @@ exception statement from your version. */ package java.security.spec; /** - A transparent interface for Key Specifications. - It contains no member functions. It is used to group - key classes. + A transparent interface for Key Specifications. + It contains no member functions. It is used to group + key classes. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ -public interface KeySpec +public interface KeySpec { } diff --git a/libjava/classpath/java/security/spec/PKCS8EncodedKeySpec.java b/libjava/classpath/java/security/spec/PKCS8EncodedKeySpec.java index 4a4f1eccea7..53b68de47f3 100644 --- a/libjava/classpath/java/security/spec/PKCS8EncodedKeySpec.java +++ b/libjava/classpath/java/security/spec/PKCS8EncodedKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -39,12 +39,12 @@ exception statement from your version. */ package java.security.spec; /** - PKCS8 Encoded Key Specification class which is used to store - "PKCS#8" byte encoded keys. + PKCS8 Encoded Key Specification class which is used to store + "PKCS#8" byte encoded keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public class PKCS8EncodedKeySpec extends EncodedKeySpec { @@ -59,9 +59,9 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec } /** - Gets the encoded key in byte format. + Gets the encoded key in byte format. - @returns the encoded key + @returns the encoded key */ public byte[] getEncoded() { @@ -69,9 +69,9 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec } /** - Returns the name of the key format used which is "PKCS#8" + Returns the name of the key format used which is "PKCS#8" - @return a string representing the name + @return a string representing the name */ public final String getFormat() { diff --git a/libjava/classpath/java/security/spec/PSSParameterSpec.java b/libjava/classpath/java/security/spec/PSSParameterSpec.java index f2a83d96718..92a6c9eddea 100644 --- a/libjava/classpath/java/security/spec/PSSParameterSpec.java +++ b/libjava/classpath/java/security/spec/PSSParameterSpec.java @@ -40,7 +40,7 @@ package java.security.spec; /** * An implementation of {@link AlgorithmParameterSpec} for the RSA PSS encoding * scheme. - * + * * @since 1.4 * @see AlgorithmParameterSpec * @see java.security.Signature @@ -58,7 +58,7 @@ public class PSSParameterSpec implements AlgorithmParameterSpec /** * Construct a new instance of <code>PSSParameterSpec</code> given a salt * length. - * + * * @param saltLen * the length in bits of the salt. * @throws IllegalArgumentException diff --git a/libjava/classpath/java/security/spec/RSAKeyGenParameterSpec.java b/libjava/classpath/java/security/spec/RSAKeyGenParameterSpec.java index ad551117729..5a1dafe2ab9 100644 --- a/libjava/classpath/java/security/spec/RSAKeyGenParameterSpec.java +++ b/libjava/classpath/java/security/spec/RSAKeyGenParameterSpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -63,7 +63,7 @@ public class RSAKeyGenParameterSpec implements AlgorithmParameterSpec public static final BigInteger F4 = BigInteger.valueOf(65537L); /** - Create a new RSAKeyGenParameterSpec to store the RSA key's keysize + Create a new RSAKeyGenParameterSpec to store the RSA key's keysize and public exponent @param keysize Modulus size of key in bits @@ -74,7 +74,7 @@ public class RSAKeyGenParameterSpec implements AlgorithmParameterSpec this.keysize = keysize; this.publicExponent = publicExponent; } - + /** Return the size of the key. @@ -84,7 +84,7 @@ public class RSAKeyGenParameterSpec implements AlgorithmParameterSpec { return keysize; } - + /** Return the public exponent. diff --git a/libjava/classpath/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java b/libjava/classpath/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java index 9e8ad0da776..09b8438dff1 100644 --- a/libjava/classpath/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java +++ b/libjava/classpath/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java @@ -72,10 +72,10 @@ public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec /** * Constructs a new instance of <code>RSAMultiPrimePrivateCrtKeySpec</code> * given the various PKCS#1 v2.1 parameters. - * + * * <p>Note that <code>otherPrimeInfo</code> is cloned when constructing this * object.</p> - * + * * @param modulus * the modulus n. * @param publicExponent diff --git a/libjava/classpath/java/security/spec/RSAOtherPrimeInfo.java b/libjava/classpath/java/security/spec/RSAOtherPrimeInfo.java index 03cdca227ed..45dd53fab41 100644 --- a/libjava/classpath/java/security/spec/RSAOtherPrimeInfo.java +++ b/libjava/classpath/java/security/spec/RSAOtherPrimeInfo.java @@ -61,7 +61,7 @@ public class RSAOtherPrimeInfo /** * Constructs a new <code>RSAOtherPrimeInfo</code> given the PKCS#1 MPIs. - * + * * @param prime * the prime factor of n. * @param primeExponent diff --git a/libjava/classpath/java/security/spec/RSAPrivateCrtKeySpec.java b/libjava/classpath/java/security/spec/RSAPrivateCrtKeySpec.java index a904c305d65..6d327e62bb0 100644 --- a/libjava/classpath/java/security/spec/RSAPrivateCrtKeySpec.java +++ b/libjava/classpath/java/security/spec/RSAPrivateCrtKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -40,13 +40,13 @@ package java.security.spec; import java.math.BigInteger; /** - RSA Private Certificate Key class Specification. Used to - maintain the RSA Private Certificate Keys with the - <I>Chinese Remainder Theorem</I>(CRT) as specified by PKCS#1. + RSA Private Certificate Key class Specification. Used to + maintain the RSA Private Certificate Keys with the + <I>Chinese Remainder Theorem</I>(CRT) as specified by PKCS#1. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec { @@ -71,13 +71,13 @@ public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec @param crtCoefficient the CRT coefficient */ public RSAPrivateCrtKeySpec(BigInteger modulus, - BigInteger publicExponent, - BigInteger privateExponent, - BigInteger primeP, - BigInteger primeQ, - BigInteger primeExponentP, - BigInteger primeExponentQ, - BigInteger crtCoefficient) + BigInteger publicExponent, + BigInteger privateExponent, + BigInteger primeP, + BigInteger primeQ, + BigInteger primeExponentP, + BigInteger primeExponentQ, + BigInteger crtCoefficient) { super( modulus, privateExponent); this.publicExponent = publicExponent; diff --git a/libjava/classpath/java/security/spec/RSAPrivateKeySpec.java b/libjava/classpath/java/security/spec/RSAPrivateKeySpec.java index d29f261cfb3..f812766ba81 100644 --- a/libjava/classpath/java/security/spec/RSAPrivateKeySpec.java +++ b/libjava/classpath/java/security/spec/RSAPrivateKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -40,12 +40,12 @@ package java.security.spec; import java.math.BigInteger; /** - RSA Private Key class Specification. Used to maintain the RSA - Private Keys. + RSA Private Key class Specification. Used to maintain the RSA + Private Keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public class RSAPrivateKeySpec implements KeySpec { diff --git a/libjava/classpath/java/security/spec/RSAPublicKeySpec.java b/libjava/classpath/java/security/spec/RSAPublicKeySpec.java index 21283aa643b..acee6bcdf37 100644 --- a/libjava/classpath/java/security/spec/RSAPublicKeySpec.java +++ b/libjava/classpath/java/security/spec/RSAPublicKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -40,12 +40,12 @@ package java.security.spec; import java.math.BigInteger; /** - RSA Public Key class Specification. Used to maintain the RSA - Public Keys. + RSA Public Key class Specification. Used to maintain the RSA + Public Keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public class RSAPublicKeySpec implements KeySpec { diff --git a/libjava/classpath/java/security/spec/X509EncodedKeySpec.java b/libjava/classpath/java/security/spec/X509EncodedKeySpec.java index de35960296d..8b50aaae1e4 100644 --- a/libjava/classpath/java/security/spec/X509EncodedKeySpec.java +++ b/libjava/classpath/java/security/spec/X509EncodedKeySpec.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -39,12 +39,12 @@ exception statement from your version. */ package java.security.spec; /** - X.509 Encoded Key Specification class which is used to store - "X.509" byte encoded keys. + X.509 Encoded Key Specification class which is used to store + "X.509" byte encoded keys. - @since JDK 1.2 + @since JDK 1.2 - @author Mark Benvenuto + @author Mark Benvenuto */ public class X509EncodedKeySpec extends EncodedKeySpec { |