1
10package org.jstk.pki;
11
12import java.io.IOException;
13import org.jstk.asn1.*;
14
15
20public class SubjectPublicKeyInfo extends ASN1Seq {
21 private AlgorithmIdentifier algorithm = new AlgorithmIdentifier();
22 private ASN1BitString subjectPublicKey = new ASN1BitString();
23
24 public SubjectPublicKeyInfo(){
25 super();
26 add(algorithm);
27 add(subjectPublicKey);
28 }
29
30 public void reinitialize(SubjectPublicKeyInfo pkInfo){
31 elems = pkInfo.elems; }
33 public String toString(){
34 StringBuffer sb = new StringBuffer();
35 sb.append("SubjectPublicKeyInfo-SEQ(" + algorithm.toString() + ", ");
36 sb.append(subjectPublicKey.toString() + ")");
37 return sb.toString();
38 }
39}
40
41