📄 x509attributecertstoreselector.html
字号:
setSerialNumber</H3><PRE>public void <B>setSerialNumber</B>(java.math.BigInteger serialNumber)</PRE><DL><DD>Sets the serial number the attribute certificate must have. If <code>null</code> is given any will do.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>serialNumber</CODE> - The serialNumber to set.</DL></DD></DL><HR><A NAME="addTargetName(org.bouncycastle.asn1.x509.GeneralName)"><!-- --></A><H3>addTargetName</H3><PRE>public void <B>addTargetName</B>(<A HREF="../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A> name)</PRE><DL><DD>Adds a target name criterion for the attribute certificate to the target information extension criteria. The <code>X509AttributeCertificate</code> must contain at least one of the specified target names. <p> Each attribute certificate may contain a target information extension limiting the servers where this attribute certificate can be used. If this extension is not present, the attribute certificate is not targeted and may be accepted by any server.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name as a GeneralName (not <code>null</code>)</DL></DD></DL><HR><A NAME="addTargetName(byte[])"><!-- --></A><H3>addTargetName</H3><PRE>public void <B>addTargetName</B>(byte[] name) throws java.io.IOException</PRE><DL><DD>Adds a target name criterion for the attribute certificate to the target information extension criteria. The <code>X509AttributeCertificate</code> must contain at least one of the specified target names. <p> Each attribute certificate may contain a target information extension limiting the servers where this attribute certificate can be used. If this extension is not present, the attribute certificate is not targeted and may be accepted by any server.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a byte array containing the name in ASN.1 DER encoded form of a GeneralName<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a parsing error occurs.</DL></DD></DL><HR><A NAME="setTargetNames(java.util.Collection)"><!-- --></A><H3>setTargetNames</H3><PRE>public void <B>setTargetNames</B>(java.util.Collection names) throws java.io.IOException</PRE><DL><DD>Adds a collection with target names criteria. If <code>null</code> is given any will do. <p> The collection consists of either GeneralName objects or byte[] arrays representing DER encoded GeneralName structures.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>names</CODE> - A collection of target names.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a parsing error occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/bouncycastle/x509/X509AttributeCertStoreSelector.html#addTargetName(byte[])"><CODE>addTargetName(byte[])</CODE></A>, <A HREF="../../../org/bouncycastle/x509/X509AttributeCertStoreSelector.html#addTargetName(org.bouncycastle.asn1.x509.GeneralName)"><CODE>addTargetName(GeneralName)</CODE></A></DL></DD></DL><HR><A NAME="getTargetNames()"><!-- --></A><H3>getTargetNames</H3><PRE>public java.util.Collection <B>getTargetNames</B>()</PRE><DL><DD>Gets the target names. The collection consists of <code>List</code>s made up of an <code>Integer</code> in the first entry and a DER encoded byte array or a <code>String</code> in the second entry. <p> The returned collection is immutable.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The collection of target names<DT><B>See Also:</B><DD><A HREF="../../../org/bouncycastle/x509/X509AttributeCertStoreSelector.html#setTargetNames(java.util.Collection)"><CODE>setTargetNames(Collection)</CODE></A></DL></DD></DL><HR><A NAME="addTargetGroup(org.bouncycastle.asn1.x509.GeneralName)"><!-- --></A><H3>addTargetGroup</H3><PRE>public void <B>addTargetGroup</B>(<A HREF="../../../org/bouncycastle/asn1/x509/GeneralName.html" title="class in org.bouncycastle.asn1.x509">GeneralName</A> group)</PRE><DL><DD>Adds a target group criterion for the attribute certificate to the target information extension criteria. The <code>X509AttributeCertificate</code> must contain at least one of the specified target groups. <p> Each attribute certificate may contain a target information extension limiting the servers where this attribute certificate can be used. If this extension is not present, the attribute certificate is not targeted and may be accepted by any server.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - The group as GeneralName form (not <code>null</code>)</DL></DD></DL><HR><A NAME="addTargetGroup(byte[])"><!-- --></A><H3>addTargetGroup</H3><PRE>public void <B>addTargetGroup</B>(byte[] name) throws java.io.IOException</PRE><DL><DD>Adds a target group criterion for the attribute certificate to the target information extension criteria. The <code>X509AttributeCertificate</code> must contain at least one of the specified target groups. <p> Each attribute certificate may contain a target information extension limiting the servers where this attribute certificate can be used. If this extension is not present, the attribute certificate is not targeted and may be accepted by any server.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a byte array containing the group in ASN.1 DER encoded form of a GeneralName<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a parsing error occurs.</DL></DD></DL><HR><A NAME="setTargetGroups(java.util.Collection)"><!-- --></A><H3>setTargetGroups</H3><PRE>public void <B>setTargetGroups</B>(java.util.Collection names) throws java.io.IOException</PRE><DL><DD>Adds a collection with target groups criteria. If <code>null</code> is given any will do. <p> The collection consists of <code>GeneralName</code> objects or <code>byte[]</code representing DER encoded GeneralNames.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>names</CODE> - A collection of target groups.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if a parsing error occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/bouncycastle/x509/X509AttributeCertStoreSelector.html#addTargetGroup(byte[])"><CODE>addTargetGroup(byte[])</CODE></A>, <A HREF="../../../org/bouncycastle/x509/X509AttributeCertStoreSelector.html#addTargetGroup(org.bouncycastle.asn1.x509.GeneralName)"><CODE>addTargetGroup(GeneralName)</CODE></A></DL></DD></DL><HR><A NAME="getTargetGroups()"><!-- --></A><H3>getTargetGroups</H3><PRE>public java.util.Collection <B>getTargetGroups</B>()</PRE><DL><DD>Gets the target groups. The collection consists of <code>List</code>s made up of an <code>Integer</code> in the first entry and a DER encoded byte array or a <code>String</code> in the second entry. <p> The returned collection is immutable.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The collection of target groups.<DT><B>See Also:</B><DD><A HREF="../../../org/bouncycastle/x509/X509AttributeCertStoreSelector.html#setTargetGroups(java.util.Collection)"><CODE>setTargetGroups(Collection)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Bouncy Castle Cryptography Library 1.42</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/bouncycastle/x509/X509AttributeCertificate.html" title="interface in org.bouncycastle.x509"><B>PREV CLASS</B></A> <A HREF="../../../org/bouncycastle/x509/X509CertificatePair.html" title="class in org.bouncycastle.x509"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/bouncycastle/x509/X509AttributeCertStoreSelector.html" target="_top"><B>FRAMES</B></A> <A HREF="X509AttributeCertStoreSelector.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -