diff options
Diffstat (limited to 'java/security/spec')
| -rw-r--r-- | java/security/spec/DSAParameterSpec.java | 5 | ||||
| -rw-r--r-- | java/security/spec/PKCS8EncodedKeySpec.java | 4 | ||||
| -rw-r--r-- | java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java | 13 | ||||
| -rw-r--r-- | java/security/spec/X509EncodedKeySpec.java | 4 |
4 files changed, 17 insertions, 9 deletions
diff --git a/java/security/spec/DSAParameterSpec.java b/java/security/spec/DSAParameterSpec.java index f7f673110..a374910c1 100644 --- a/java/security/spec/DSAParameterSpec.java +++ b/java/security/spec/DSAParameterSpec.java @@ -1,5 +1,5 @@ /* DSAParameterSpec.java --- DSA Parameter Specificaton class - Copyright (C) 1999, 2004 Free Software Foundation, Inc. + Copyright (C) 1999, 2004, 2015 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -74,6 +74,7 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams * * @return Returns the requested BigInteger */ + @Override public BigInteger getP() { return this.p; @@ -84,6 +85,7 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams * * @return Returns the requested BigInteger */ + @Override public BigInteger getQ() { return this.q; @@ -94,6 +96,7 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams * * @return Returns the requested BigInteger */ + @Override public BigInteger getG() { return this.g; diff --git a/java/security/spec/PKCS8EncodedKeySpec.java b/java/security/spec/PKCS8EncodedKeySpec.java index 53b68de47..c064621f6 100644 --- a/java/security/spec/PKCS8EncodedKeySpec.java +++ b/java/security/spec/PKCS8EncodedKeySpec.java @@ -1,5 +1,5 @@ /* PKCS8EncodedKeySpec.java --- PKCS8 Encoded Key Specificaton class - Copyright (C) 1999, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2015 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -63,6 +63,7 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec @returns the encoded key */ + @Override public byte[] getEncoded() { return super.getEncoded(); @@ -73,6 +74,7 @@ public class PKCS8EncodedKeySpec extends EncodedKeySpec @return a string representing the name */ + @Override public final String getFormat() { return "PKCS#8"; diff --git a/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java b/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java index 09b8438df..199c4036b 100644 --- a/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java +++ b/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java @@ -1,5 +1,5 @@ -/* PSSParameterSpec.java -- - Copyright (C) 2003, Free Software Foundation, Inc. +/* RSAMultiPrimePrivateCrtKeySpec.java -- + Copyright (C) 2003, 2015 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -129,10 +129,11 @@ public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec if (crtCoefficient == null) throw new NullPointerException("crtCoefficient"); if (otherPrimeInfo != null) - if (otherPrimeInfo.length == 0) - throw new IllegalArgumentException(); - else - this.otherPrimeInfo = (RSAOtherPrimeInfo[]) otherPrimeInfo.clone(); + { + if (otherPrimeInfo.length == 0) + throw new IllegalArgumentException(); + this.otherPrimeInfo = otherPrimeInfo.clone(); + } this.publicExponent = publicExponent; this.primeP = primeP; diff --git a/java/security/spec/X509EncodedKeySpec.java b/java/security/spec/X509EncodedKeySpec.java index 8b50aaae1..3bc33d089 100644 --- a/java/security/spec/X509EncodedKeySpec.java +++ b/java/security/spec/X509EncodedKeySpec.java @@ -1,5 +1,5 @@ /* X509EncodedKeySpec.java --- X.509 Encoded Key Specificaton class - Copyright (C) 1999, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2015 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -64,6 +64,7 @@ public class X509EncodedKeySpec extends EncodedKeySpec @returns the encoded key */ + @Override public byte[] getEncoded() { return super.getEncoded(); @@ -74,6 +75,7 @@ public class X509EncodedKeySpec extends EncodedKeySpec @return a string representing the name */ + @Override public final String getFormat() { return "X.509"; |
