use of com.github.zhenwei.core.asn1.DERIA5String in project keystore-explorer by kaikramer.
the class DNetscapeCertificateRenewalUrl method okPressed.
private void okPressed() {
String netscapeCertificateRenewalUrlStr = jtfNetscapeCertificateRenewalUrl.getText().trim();
if (netscapeCertificateRenewalUrlStr.length() == 0) {
JOptionPane.showMessageDialog(this, res.getString("DNetscapeCertificateRenewalUrl.ValueReq.message"), getTitle(), JOptionPane.WARNING_MESSAGE);
return;
}
DERIA5String netscapeCertificateRenewalUrl = new DERIA5String(netscapeCertificateRenewalUrlStr);
try {
value = netscapeCertificateRenewalUrl.getEncoded(ASN1Encoding.DER);
} catch (IOException ex) {
DError dError = new DError(this, ex);
dError.setLocationRelativeTo(this);
dError.setVisible(true);
return;
}
closeDialog();
}
use of com.github.zhenwei.core.asn1.DERIA5String in project keystore-explorer by kaikramer.
the class DNetscapeComment method prepopulateWithValue.
private void prepopulateWithValue(byte[] value) throws IOException {
DERIA5String netscapeComment = DERIA5String.getInstance(value);
jtaNetscapeComment.setText(netscapeComment.getString());
jtaNetscapeComment.setCaretPosition(0);
}
use of com.github.zhenwei.core.asn1.DERIA5String in project keystore-explorer by kaikramer.
the class DNetscapeRevocationUrl method prepopulateWithValue.
private void prepopulateWithValue(byte[] value) throws IOException {
DERIA5String netscapeRevocationUrl = DERIA5String.getInstance(value);
jtfNetscapeRevocationUrl.setText(netscapeRevocationUrl.getString());
jtfNetscapeRevocationUrl.setCaretPosition(0);
}
use of com.github.zhenwei.core.asn1.DERIA5String in project keystore-explorer by kaikramer.
the class DNetscapeRevocationUrl method okPressed.
private void okPressed() {
String netscapeRevocationUrlStr = jtfNetscapeRevocationUrl.getText().trim();
if (netscapeRevocationUrlStr.length() == 0) {
JOptionPane.showMessageDialog(this, res.getString("DNetscapeRevocationUrl.ValueReq.message"), getTitle(), JOptionPane.WARNING_MESSAGE);
return;
}
DERIA5String netscapeRevocationUrl = new DERIA5String(netscapeRevocationUrlStr);
try {
value = netscapeRevocationUrl.getEncoded(ASN1Encoding.DER);
} catch (IOException ex) {
DError dError = new DError(this, ex);
dError.setLocationRelativeTo(this);
dError.setVisible(true);
return;
}
closeDialog();
}
use of com.github.zhenwei.core.asn1.DERIA5String in project keystore-explorer by kaikramer.
the class DNetscapeSslServerName method prepopulateWithValue.
private void prepopulateWithValue(byte[] value) throws IOException {
DERIA5String netscapeSslServerName = DERIA5String.getInstance(value);
jtfNetscapeSslServerName.setText(netscapeSslServerName.getString());
jtfNetscapeSslServerName.setCaretPosition(0);
}
Aggregations