summaryrefslogtreecommitdiff
path: root/libjava/classpath/java/security/cert
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/security/cert')
-rw-r--r--libjava/classpath/java/security/cert/CertPath.java4
-rw-r--r--libjava/classpath/java/security/cert/CertPathBuilder.java4
-rw-r--r--libjava/classpath/java/security/cert/CertPathValidator.java4
-rw-r--r--libjava/classpath/java/security/cert/CertStore.java4
-rw-r--r--libjava/classpath/java/security/cert/PKIXBuilderParameters.java4
-rw-r--r--libjava/classpath/java/security/cert/PKIXCertPathBuilderResult.java4
-rw-r--r--libjava/classpath/java/security/cert/PolicyQualifierInfo.java6
-rw-r--r--libjava/classpath/java/security/cert/X509CRLSelector.java3
-rw-r--r--libjava/classpath/java/security/cert/X509CertSelector.java3
9 files changed, 25 insertions, 11 deletions
diff --git a/libjava/classpath/java/security/cert/CertPath.java b/libjava/classpath/java/security/cert/CertPath.java
index 781eb3e2776..7211647a40e 100644
--- a/libjava/classpath/java/security/cert/CertPath.java
+++ b/libjava/classpath/java/security/cert/CertPath.java
@@ -37,6 +37,8 @@ exception statement from your version. */
package java.security.cert;
+import gnu.java.lang.CPStringBuilder;
+
import java.io.ByteArrayInputStream;
import java.io.NotSerializableException;
import java.io.ObjectStreamException;
@@ -196,7 +198,7 @@ public abstract class CertPath implements Serializable
List l = getCertificates();
int size = l.size();
int i = 0;
- StringBuffer result = new StringBuffer(type);
+ CPStringBuilder result = new CPStringBuilder(type);
result.append(" Cert Path: length = ").append(size).append(".\n[\n");
while (--size >= 0)
result.append(l.get(i++)).append('\n');
diff --git a/libjava/classpath/java/security/cert/CertPathBuilder.java b/libjava/classpath/java/security/cert/CertPathBuilder.java
index 519ed2b6c52..99f7c975252 100644
--- a/libjava/classpath/java/security/cert/CertPathBuilder.java
+++ b/libjava/classpath/java/security/cert/CertPathBuilder.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.security.cert;
+import gnu.java.lang.CPStringBuilder;
+
import gnu.java.security.Engine;
import java.lang.reflect.InvocationTargetException;
@@ -182,7 +184,7 @@ public class CertPathBuilder
public static CertPathBuilder getInstance(String algorithm, Provider provider)
throws NoSuchAlgorithmException
{
- StringBuilder sb = new StringBuilder("CertPathBuilder for algorithm [")
+ CPStringBuilder sb = new CPStringBuilder("CertPathBuilder for algorithm [")
.append(algorithm).append("] from provider[")
.append(provider).append("] could not be created");
Throwable cause;
diff --git a/libjava/classpath/java/security/cert/CertPathValidator.java b/libjava/classpath/java/security/cert/CertPathValidator.java
index bf7c9746e24..af08b54a84e 100644
--- a/libjava/classpath/java/security/cert/CertPathValidator.java
+++ b/libjava/classpath/java/security/cert/CertPathValidator.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.security.cert;
+import gnu.java.lang.CPStringBuilder;
+
import gnu.java.security.Engine;
import java.lang.reflect.InvocationTargetException;
@@ -196,7 +198,7 @@ public class CertPathValidator {
Provider provider)
throws NoSuchAlgorithmException
{
- StringBuilder sb = new StringBuilder("CertPathValidator for algorithm [")
+ CPStringBuilder sb = new CPStringBuilder("CertPathValidator for algorithm [")
.append(algorithm).append("] from provider[")
.append(provider).append("] could not be created");
Throwable cause;
diff --git a/libjava/classpath/java/security/cert/CertStore.java b/libjava/classpath/java/security/cert/CertStore.java
index a27086562e6..1ebdb50337b 100644
--- a/libjava/classpath/java/security/cert/CertStore.java
+++ b/libjava/classpath/java/security/cert/CertStore.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.security.cert;
+import gnu.java.lang.CPStringBuilder;
+
import gnu.java.security.Engine;
import java.lang.reflect.InvocationTargetException;
@@ -207,7 +209,7 @@ public class CertStore
Provider provider)
throws InvalidAlgorithmParameterException, NoSuchAlgorithmException
{
- StringBuilder sb = new StringBuilder("CertStore of type [")
+ CPStringBuilder sb = new CPStringBuilder("CertStore of type [")
.append(type).append("] from provider[")
.append(provider).append("] could not be created");
Throwable cause;
diff --git a/libjava/classpath/java/security/cert/PKIXBuilderParameters.java b/libjava/classpath/java/security/cert/PKIXBuilderParameters.java
index 5e234cec158..fd5f1f87fd0 100644
--- a/libjava/classpath/java/security/cert/PKIXBuilderParameters.java
+++ b/libjava/classpath/java/security/cert/PKIXBuilderParameters.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.security.cert;
+import gnu.java.lang.CPStringBuilder;
+
import java.security.InvalidAlgorithmParameterException;
import java.security.KeyStore;
import java.security.KeyStoreException;
@@ -140,7 +142,7 @@ public class PKIXBuilderParameters extends PKIXParameters
public String toString()
{
- StringBuffer buf = new StringBuffer(super.toString());
+ CPStringBuilder buf = new CPStringBuilder(super.toString());
buf.insert(buf.length() - 2, "; Max Path Length=" + maxPathLength);
return buf.toString();
}
diff --git a/libjava/classpath/java/security/cert/PKIXCertPathBuilderResult.java b/libjava/classpath/java/security/cert/PKIXCertPathBuilderResult.java
index 5091dd41298..fa160913c7d 100644
--- a/libjava/classpath/java/security/cert/PKIXCertPathBuilderResult.java
+++ b/libjava/classpath/java/security/cert/PKIXCertPathBuilderResult.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.security.cert;
+import gnu.java.lang.CPStringBuilder;
+
/**
* The result of calling the {@link
* CertPathBuilder#build(java.security.cert.CertPathParameters)} method
@@ -95,7 +97,7 @@ public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult
public String toString()
{
- StringBuffer buf = new StringBuffer(super.toString());
+ CPStringBuilder buf = new CPStringBuilder(super.toString());
buf.insert(buf.length() - 2, "; CertPath=" + certPath);
return buf.toString();
}
diff --git a/libjava/classpath/java/security/cert/PolicyQualifierInfo.java b/libjava/classpath/java/security/cert/PolicyQualifierInfo.java
index b50f3f31245..d4d9f99844d 100644
--- a/libjava/classpath/java/security/cert/PolicyQualifierInfo.java
+++ b/libjava/classpath/java/security/cert/PolicyQualifierInfo.java
@@ -124,7 +124,7 @@ PolicyQualifierId ::= OBJECT IDENTIFIER
*
* @return This structure's OID field.
*/
- public String getPolicyQualifierId()
+ public final String getPolicyQualifierId()
{
return oid.toString();
}
@@ -137,7 +137,7 @@ PolicyQualifierId ::= OBJECT IDENTIFIER
*
* @return The encoded form.
*/
- public byte[] getEncoded()
+ public final byte[] getEncoded()
{
return (byte[]) encoded.clone();
}
@@ -149,7 +149,7 @@ PolicyQualifierId ::= OBJECT IDENTIFIER
*
* @return The encoded qualifier.
*/
- public byte[] getPolicyQualifier()
+ public final byte[] getPolicyQualifier()
{
if (qualifier == null)
return new byte[0];
diff --git a/libjava/classpath/java/security/cert/X509CRLSelector.java b/libjava/classpath/java/security/cert/X509CRLSelector.java
index 56b171369fb..d412a1ae39e 100644
--- a/libjava/classpath/java/security/cert/X509CRLSelector.java
+++ b/libjava/classpath/java/security/cert/X509CRLSelector.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package java.security.cert;
import gnu.classpath.SystemProperties;
+import gnu.java.lang.CPStringBuilder;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
@@ -335,7 +336,7 @@ public class X509CRLSelector implements CRLSelector, Cloneable
*/
public String toString()
{
- StringBuffer str = new StringBuffer(X509CRLSelector.class.getName());
+ CPStringBuilder str = new CPStringBuilder(X509CRLSelector.class.getName());
String nl = SystemProperties.getProperty("line.separator");
String eol = ";" + nl;
diff --git a/libjava/classpath/java/security/cert/X509CertSelector.java b/libjava/classpath/java/security/cert/X509CertSelector.java
index 7a7db086b0a..4115fffacfa 100644
--- a/libjava/classpath/java/security/cert/X509CertSelector.java
+++ b/libjava/classpath/java/security/cert/X509CertSelector.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package java.security.cert;
import gnu.classpath.SystemProperties;
+import gnu.java.lang.CPStringBuilder;
import gnu.java.security.OID;
import gnu.java.security.x509.GnuPKIExtension;
import gnu.java.security.x509.ext.CertificatePolicies;
@@ -1251,7 +1252,7 @@ public class X509CertSelector implements CertSelector, Cloneable
public String toString()
{
- StringBuffer str = new StringBuffer(X509CertSelector.class.getName());
+ CPStringBuilder str = new CPStringBuilder(X509CertSelector.class.getName());
String nl = SystemProperties.getProperty("line.separator");
String eol = ";" + nl;
str.append(" {").append(nl);