Search in sources :

Example 11 with UserNotice

use of org.bouncycastle.asn1.x509.UserNotice 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

UserNotice (org.bouncycastle.asn1.x509.UserNotice)8 ASN1ObjectIdentifier (org.bouncycastle.asn1.ASN1ObjectIdentifier)6 ASN1Encodable (org.bouncycastle.asn1.ASN1Encodable)4 DERIA5String (org.bouncycastle.asn1.DERIA5String)4 NoticeReference (org.bouncycastle.asn1.x509.NoticeReference)4 PolicyQualifierInfo (org.bouncycastle.asn1.x509.PolicyQualifierInfo)4 ASN1Integer (org.bouncycastle.asn1.ASN1Integer)3 ASN1Sequence (org.bouncycastle.asn1.ASN1Sequence)3 DisplayText (org.bouncycastle.asn1.x509.DisplayText)3 ASN1OctetString (org.bouncycastle.asn1.ASN1OctetString)2 DERBMPString (org.bouncycastle.asn1.DERBMPString)2 DERPrintableString (org.bouncycastle.asn1.DERPrintableString)2 DirectoryString (org.bouncycastle.asn1.x500.DirectoryString)2 CRLDistPoint (org.bouncycastle.asn1.x509.CRLDistPoint)2 DistributionPoint (org.bouncycastle.asn1.x509.DistributionPoint)2 PolicyInformation (org.bouncycastle.asn1.x509.PolicyInformation)2 Container (java.awt.Container)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 LinkedList (java.util.LinkedList)1