use of org.bouncycastle.asn1.x509.PolicyMappings in project keystore-explorer by kaikramer.
the class DPolicyMappings method okPressed.
private void okPressed() {
PolicyMappings policyMappings = jpmPolicyMappings.getPolicyMappings();
ASN1Sequence policyMappingsSeq = (ASN1Sequence) policyMappings.toASN1Primitive();
if (policyMappingsSeq.size() == 0) {
JOptionPane.showMessageDialog(this, res.getString("DPolicyMappings.ValueReq.message"), getTitle(), JOptionPane.WARNING_MESSAGE);
return;
}
try {
value = policyMappings.getEncoded(ASN1Encoding.DER);
} catch (IOException ex) {
DError dError = new DError(this, ex);
dError.setLocationRelativeTo(this);
dError.setVisible(true);
return;
}
closeDialog();
}
use of org.bouncycastle.asn1.x509.PolicyMappings in project keystore-explorer by kaikramer.
the class JPolicyMappings method populate.
private void populate() {
if (policyMappings == null) {
policyMappings = new PolicyMappings(new CertPolicyId[0], new CertPolicyId[0]);
}
reloadPolicyMappingsTable();
selectFirstPolicyMappingInTable();
updateButtonControls();
}
Aggregations