1 13 14 package org.ejbca.core.model.keyrecovery; 15 16 17 import java.math.BigInteger ; 18 import java.security.cert.Certificate ; 19 import java.security.KeyPair ; 20 21 import org.ejbca.util.StringTools; 22 23 24 31 public class KeyRecoveryData implements java.io.Serializable { 32 33 public KeyRecoveryData(BigInteger certificatesn, String issuerdn, String username, 35 boolean markedasrecoverable, KeyPair keypair, Certificate certificate) { 36 this.certificatesn = certificatesn; 37 this.issuerdn = issuerdn; 38 this.username = StringTools.strip(username); 39 this.markedasrecoverable = markedasrecoverable; 40 this.keypair = keypair; 41 this.certificate = certificate; 42 } 43 44 47 public KeyRecoveryData() { 48 } 49 50 public BigInteger getCertificateSN() { 52 return this.certificatesn; 53 } 54 55 60 public void setCertificateSN(BigInteger certificatesn) { 61 this.certificatesn = certificatesn; 62 } 63 64 69 public String getIssuerDN() { 70 return this.issuerdn; 71 } 72 73 78 public void setIssuerDN(String issuerdn) { 79 this.issuerdn = issuerdn; 80 } 81 82 87 public String getUsername() { 88 return this.username; 89 } 90 91 96 public void setUsername(String username) { 97 this.username = StringTools.strip(username); 98 } 99 100 105 public boolean getMarkedAsRecoverable() { 106 return this.markedasrecoverable; 107 } 108 109 114 public void setMarkedAsRecoverable(boolean markedasrecoverable) { 115 this.markedasrecoverable = markedasrecoverable; 116 } 117 118 123 public KeyPair getKeyPair() { 124 return this.keypair; 125 } 126 127 132 public void setKeyPair(KeyPair keypair) { 133 this.keypair = keypair; 134 } 135 136 139 public Certificate getCertificate() { 140 return certificate; 141 } 142 145 public void setCertificate(Certificate certificate) { 146 this.certificate = certificate; 147 } 148 149 private BigInteger certificatesn; 151 private String issuerdn; 152 private String username; 153 private boolean markedasrecoverable; 154 private KeyPair keypair; 155 private Certificate certificate; 156 157 158 } 159 | Popular Tags |