You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oltu.apache.org by si...@apache.org on 2010/07/11 16:11:02 UTC
svn commit: r963077 -
/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/rsa/AbstractRsaSha1Key.java
Author: simonetripodi
Date: Sun Jul 11 14:11:02 2010
New Revision: 963077
URL: http://svn.apache.org/viewvc?rev=963077&view=rev
Log:
renamed local key variable to a meaningful name
Modified:
incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/rsa/AbstractRsaSha1Key.java
Modified: incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/rsa/AbstractRsaSha1Key.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/rsa/AbstractRsaSha1Key.java?rev=963077&r1=963076&r2=963077&view=diff
==============================================================================
--- incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/rsa/AbstractRsaSha1Key.java (original)
+++ incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/rsa/AbstractRsaSha1Key.java Sun Jul 11 14:11:02 2010
@@ -35,7 +35,7 @@ abstract class AbstractRsaSha1Key<T exte
private static final String[] METHODS = { "RSA-SHA1" };
- private final T keyValue;
+ private final T rsaKey;
/**
* Loads a key from a certificate located in the classpath.
@@ -62,7 +62,7 @@ abstract class AbstractRsaSha1Key<T exte
+ "' not found, please make sure it exists in the classpath");
}
- this.keyValue = this.readCertificate(certificateURL);
+ this.rsaKey = this.readCertificate(certificateURL);
}
/**
@@ -82,7 +82,7 @@ abstract class AbstractRsaSha1Key<T exte
}
try {
- this.keyValue = this.readCertificate(certificateFileLocation.toURI().toURL());
+ this.rsaKey = this.readCertificate(certificateFileLocation.toURI().toURL());
} catch (MalformedURLException e) {
throw new SignatureException("Impossible to read the certificate from '"
+ certificateFileLocation
@@ -101,7 +101,7 @@ abstract class AbstractRsaSha1Key<T exte
throw new SignatureException("parameter 'certificateURL' must not be null");
}
- this.keyValue = this.readCertificate(certificateURL);
+ this.rsaKey = this.readCertificate(certificateURL);
}
private T readCertificate(URL certificateURL) throws SignatureException {
@@ -132,13 +132,13 @@ abstract class AbstractRsaSha1Key<T exte
}
}
- public T getKeyValue() {
- return this.keyValue;
+ public final T getRsaKey() {
+ return this.rsaKey;
}
@Override
public final String getValue() {
- return String.valueOf(this.keyValue);
+ return String.valueOf(this.rsaKey);
}
protected abstract T readCertificate(InputStream input) throws Exception;