Search in sources :

Example 6 with NoticeReference

use of org.bouncycastle.asn1.x509.NoticeReference in project keystore-explorer by kaikramer.

the class DUserNoticeChooser method populate.

private void populate(UserNotice userNotice) {
    if (userNotice != null) {
        NoticeReference noticeReference = userNotice.getNoticeRef();
        if (noticeReference != null) {
            DisplayText organization = noticeReference.getOrganization();
            if (organization != null) {
                jtfOrganization.setText(organization.getString());
                jtfOrganization.setCaretPosition(0);
            }
            populateNoticeNumbers(noticeReference);
        }
        DisplayText explicitText = userNotice.getExplicitText();
        if (explicitText != null) {
            jtfExplicitText.setText(explicitText.getString());
            jtfExplicitText.setCaretPosition(0);
        }
    }
}
Also used : DisplayText(org.bouncycastle.asn1.x509.DisplayText) NoticeReference(org.bouncycastle.asn1.x509.NoticeReference)

Aggregations

ASN1Integer (org.bouncycastle.asn1.ASN1Integer)4 NoticeReference (org.bouncycastle.asn1.x509.NoticeReference)4 DisplayText (org.bouncycastle.asn1.x509.DisplayText)3 ASN1ObjectIdentifier (org.bouncycastle.asn1.ASN1ObjectIdentifier)2 ASN1Sequence (org.bouncycastle.asn1.ASN1Sequence)2 UserNotice (org.bouncycastle.asn1.x509.UserNotice)2 Vector (java.util.Vector)1 ASN1Encodable (org.bouncycastle.asn1.ASN1Encodable)1 ASN1OctetString (org.bouncycastle.asn1.ASN1OctetString)1 DERBMPString (org.bouncycastle.asn1.DERBMPString)1 DERBitString (org.bouncycastle.asn1.DERBitString)1 DERGeneralString (org.bouncycastle.asn1.DERGeneralString)1 DERIA5String (org.bouncycastle.asn1.DERIA5String)1 DERPrintableString (org.bouncycastle.asn1.DERPrintableString)1 DirectoryString (org.bouncycastle.asn1.x500.DirectoryString)1 CRLDistPoint (org.bouncycastle.asn1.x509.CRLDistPoint)1 CertificatePolicies (org.bouncycastle.asn1.x509.CertificatePolicies)1 DistributionPoint (org.bouncycastle.asn1.x509.DistributionPoint)1 IssuingDistributionPoint (org.bouncycastle.asn1.x509.IssuingDistributionPoint)1 PolicyInformation (org.bouncycastle.asn1.x509.PolicyInformation)1