use of org.kse.crypto.x509.SubjectInfoAccess in project keystore-explorer by kaikramer.
the class DSubjectInformationAccess method prepopulateWithValue.
private void prepopulateWithValue(byte[] value) throws IOException {
SubjectInfoAccess subjectInformationAccess = SubjectInfoAccess.getInstance(value);
jadAccessDescriptions.setAccessDescriptions(subjectInformationAccess.getAccessDescriptionList());
}
use of org.kse.crypto.x509.SubjectInfoAccess in project keystore-explorer by kaikramer.
the class DSubjectInformationAccess method okPressed.
private void okPressed() {
List<AccessDescription> accessDescriptions = jadAccessDescriptions.getAccessDescriptions();
if (accessDescriptions.size() == 0) {
JOptionPane.showMessageDialog(this, res.getString("DSubjectInformationAccess.ValueReq.message"), getTitle(), JOptionPane.WARNING_MESSAGE);
return;
}
SubjectInfoAccess subjectInformationAccess = new SubjectInfoAccess(accessDescriptions);
try {
value = subjectInformationAccess.getEncoded(ASN1Encoding.DER);
} catch (IOException ex) {
DError dError = new DError(this, ex);
dError.setLocationRelativeTo(this);
dError.setVisible(true);
return;
}
closeDialog();
}
Aggregations