FileDocCategorySizeDatePackage
UserNotice.javaAPI DocAzureus 3.0.3.42396Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1.x509

UserNotice

public class UserNotice extends org.bouncycastle.asn1.ASN1Encodable
UserNotice class, used in CertificatePolicies X509 extensions (in policy qualifiers).
UserNotice ::= SEQUENCE {
noticeRef NoticeReference OPTIONAL,
explicitText DisplayText OPTIONAL}

see
PolicyQualifierId
see
PolicyInformation

Fields Summary
NoticeReference
noticeRef
DisplayText
explicitText
Constructors Summary
public UserNotice(NoticeReference noticeRef, DisplayText explicitText)
Creates a new UserNotice instance.

param
noticeRef a NoticeReference value
param
explicitText a DisplayText value

         this.noticeRef = noticeRef;
         this.explicitText = explicitText;
      
public UserNotice(NoticeReference noticeRef, String str)
Creates a new UserNotice instance.

param
noticeRef a NoticeReference value
param
str the explicitText field as a String.

         this.noticeRef = noticeRef;
         this.explicitText = new DisplayText (str);
      
public UserNotice(org.bouncycastle.asn1.ASN1Sequence as)
Creates a new UserNotice instance.

Useful from reconstructing a UserNotice instance from its encodable/encoded form.

param
as an ASN1Sequence value obtained from either calling @{link toASN1Object()} for a UserNotice instance or from parsing it from a DER-encoded stream.

         NoticeReference nr =
            new NoticeReference (
               ASN1Sequence.getInstance(as.getObjectAt(0)));

         if (as.size() > 1) {
            explicitText =
               DisplayText.getInstance(ASN1Sequence.getInstance(
                                   as.getObjectAt(1)));
         }
      
Methods Summary
public org.bouncycastle.asn1.DERObjecttoASN1Object()

         ASN1EncodableVector av = new ASN1EncodableVector();
         av.add(noticeRef);
         av.add(explicitText);
         return new DERSequence(av);