summaryrefslogtreecommitdiffstats
path: root/base/util/src/netscape/security/x509/X500Signer.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/util/src/netscape/security/x509/X500Signer.java')
-rw-r--r--base/util/src/netscape/security/x509/X500Signer.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/base/util/src/netscape/security/x509/X500Signer.java b/base/util/src/netscape/security/x509/X500Signer.java
index 0b8cf87a4..3bc5a413e 100644
--- a/base/util/src/netscape/security/x509/X500Signer.java
+++ b/base/util/src/netscape/security/x509/X500Signer.java
@@ -26,17 +26,17 @@ import java.security.Signer;
* This class provides a binding between a Signature object and an
* authenticated X.500 name (from an X.509 certificate chain), which
* is needed in many public key signing applications.
- *
+ *
* <P>
* The name of the signer is important, both because knowing it is the whole point of the signature, and because the
* associated X.509 certificate is always used to verify the signature.
- *
+ *
* <P>
* <em>The X.509 certificate chain is temporarily not associated with
* the signer, but this omission will be resolved.</em>
- *
+ *
* @version 1.18
- *
+ *
* @author David Brownell
* @author Amit Kapoor
* @author Hemma Prafullchandra
@@ -51,7 +51,7 @@ public final class X500Signer extends Signer {
* Called for each chunk of the data being signed. That
* is, you can present the data in many chunks, so that
* it doesn't need to be in a single sequential buffer.
- *
+ *
* @param buf buffer holding the next chunk of the data to be signed
* @param offset starting point of to-be-signed data
* @param len how many bytes of data are to be signed
@@ -64,7 +64,7 @@ public final class X500Signer extends Signer {
/**
* Produces the signature for the data processed by update().
- *
+ *
* @exception SignatureException on errors.
*/
public byte[] sign() throws SignatureException {
@@ -98,12 +98,12 @@ public final class X500Signer extends Signer {
this.agent = agent;
try {
- this.algid = AlgorithmId.getAlgorithmId(sig.getAlgorithm());
+ this.algid = AlgorithmId.get(sig.getAlgorithm());
String alg = sig.getAlgorithm();
if (alg.equals("DSA")) {
alg = "SHA1withDSA";
}
- this.algid = AlgorithmId.getAlgorithmId(alg);
+ this.algid = AlgorithmId.get(alg);
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("internal error! " + e.getMessage());