signerinformation.html
来自「jijo djoijio oijoij poikijoi joijoij」· HTML 代码 · 共 682 行 · 第 1/2 页
HTML
682 行
public java.lang.String <B>getDigestAlgOID</B>()</PRE><DL><DD>return the object identifier for the signature.<P><DD><DL></DL></DD></DL><HR><A NAME="getDigestAlgParams()"><!-- --></A><H3>getDigestAlgParams</H3><PRE>public byte[] <B>getDigestAlgParams</B>()</PRE><DL><DD>return the signature parameters, or null if there aren't any.<P><DD><DL></DL></DD></DL><HR><A NAME="getContentDigest()"><!-- --></A><H3>getContentDigest</H3><PRE>public byte[] <B>getContentDigest</B>()</PRE><DL><DD>return the content digest that was calculated during verification.<P><DD><DL></DL></DD></DL><HR><A NAME="getEncryptionAlgOID()"><!-- --></A><H3>getEncryptionAlgOID</H3><PRE>public java.lang.String <B>getEncryptionAlgOID</B>()</PRE><DL><DD>return the object identifier for the signature.<P><DD><DL></DL></DD></DL><HR><A NAME="getEncryptionAlgParams()"><!-- --></A><H3>getEncryptionAlgParams</H3><PRE>public byte[] <B>getEncryptionAlgParams</B>()</PRE><DL><DD>return the signature/encryption algorithm parameters, or null if there aren't any.<P><DD><DL></DL></DD></DL><HR><A NAME="getSignedAttributes()"><!-- --></A><H3>getSignedAttributes</H3><PRE>public org.bouncycastle.asn1.cms.AttributeTable <B>getSignedAttributes</B>()</PRE><DL><DD>return a table of the signed attributes - indexed by the OID of the attribute.<P><DD><DL></DL></DD></DL><HR><A NAME="getUnsignedAttributes()"><!-- --></A><H3>getUnsignedAttributes</H3><PRE>public org.bouncycastle.asn1.cms.AttributeTable <B>getUnsignedAttributes</B>()</PRE><DL><DD>return a table of the unsigned attributes indexed by the OID of the attribute.<P><DD><DL></DL></DD></DL><HR><A NAME="getSignature()"><!-- --></A><H3>getSignature</H3><PRE>public byte[] <B>getSignature</B>()</PRE><DL><DD>return the encoded signature<P><DD><DL></DL></DD></DL><HR><A NAME="getCounterSignatures()"><!-- --></A><H3>getCounterSignatures</H3><PRE>public <A HREF="../../../org/bouncycastle/cms/SignerInformationStore.html" title="class in org.bouncycastle.cms">SignerInformationStore</A> <B>getCounterSignatures</B>()</PRE><DL><DD>Return a SignerInformationStore containing the counter signatures attached to this signer. If no counter signatures are present an empty store is returned.<P><DD><DL></DL></DD></DL><HR><A NAME="getEncodedSignedAttributes()"><!-- --></A><H3>getEncodedSignedAttributes</H3><PRE>public byte[] <B>getEncodedSignedAttributes</B>() throws java.io.IOException</PRE><DL><DD>return the DER encoding of the signed attributes.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an encoding error occurs.</DL></DD></DL><HR><A NAME="verify(java.security.PublicKey, java.lang.String)"><!-- --></A><H3>verify</H3><PRE>public boolean <B>verify</B>(java.security.PublicKey key, java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, <A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></PRE><DL><DD>verify that the given public key succesfully handles and confirms the signature associated with this signer.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE><A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></CODE></DL></DD></DL><HR><A NAME="verify(java.security.PublicKey, java.security.Provider)"><!-- --></A><H3>verify</H3><PRE>public boolean <B>verify</B>(java.security.PublicKey key, java.security.Provider sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, <A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></PRE><DL><DD>verify that the given public key succesfully handles and confirms the signature associated with this signer.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE><A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></CODE></DL></DD></DL><HR><A NAME="verify(java.security.cert.X509Certificate, java.lang.String)"><!-- --></A><H3>verify</H3><PRE>public boolean <B>verify</B>(java.security.cert.X509Certificate cert, java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException, <A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></PRE><DL><DD>verify that the given certificate successfully handles and confirms the signature associated with this signer and, if a signingTime attribute is available, that the certificate was valid at the time the signature was generated.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.NoSuchProviderException</CODE><DD><CODE>java.security.cert.CertificateExpiredException</CODE><DD><CODE>java.security.cert.CertificateNotYetValidException</CODE><DD><CODE><A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></CODE></DL></DD></DL><HR><A NAME="verify(java.security.cert.X509Certificate, java.security.Provider)"><!-- --></A><H3>verify</H3><PRE>public boolean <B>verify</B>(java.security.cert.X509Certificate cert, java.security.Provider sigProvider) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException, <A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></PRE><DL><DD>verify that the given certificate successfully handles and confirms the signature associated with this signer and, if a signingTime attribute is available, that the certificate was valid at the time the signature was generated.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.security.NoSuchAlgorithmException</CODE><DD><CODE>java.security.cert.CertificateExpiredException</CODE><DD><CODE>java.security.cert.CertificateNotYetValidException</CODE><DD><CODE><A HREF="../../../org/bouncycastle/cms/CMSException.html" title="class in org.bouncycastle.cms">CMSException</A></CODE></DL></DD></DL><HR><A NAME="toSignerInfo()"><!-- --></A><H3>toSignerInfo</H3><PRE>public org.bouncycastle.asn1.cms.SignerInfo <B>toSignerInfo</B>()</PRE><DL><DD>Return the base ASN.1 CMS structure that this object contains.<P><DD><DL><DT><B>Returns:</B><DD>an object containing a CMS SignerInfo structure.</DL></DD></DL><HR><A NAME="replaceUnsignedAttributes(org.bouncycastle.cms.SignerInformation, org.bouncycastle.asn1.cms.AttributeTable)"><!-- --></A><H3>replaceUnsignedAttributes</H3><PRE>public static <A HREF="../../../org/bouncycastle/cms/SignerInformation.html" title="class in org.bouncycastle.cms">SignerInformation</A> <B>replaceUnsignedAttributes</B>(<A HREF="../../../org/bouncycastle/cms/SignerInformation.html" title="class in org.bouncycastle.cms">SignerInformation</A> signerInformation, org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes)</PRE><DL><DD>Return a signer information object with the passed in unsigned attributes replacing the ones that are current associated with the object passed in.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>signerInformation</CODE> - the signerInfo to be used as the basis.<DD><CODE>unsignedAttributes</CODE> - the unsigned attributes to add.<DT><B>Returns:</B><DD>a copy of the original SignerInformationObject with the changed attributes.</DL></DD></DL><HR><A NAME="addCounterSigners(org.bouncycastle.cms.SignerInformation, org.bouncycastle.cms.SignerInformationStore)"><!-- --></A><H3>addCounterSigners</H3><PRE>public static <A HREF="../../../org/bouncycastle/cms/SignerInformation.html" title="class in org.bouncycastle.cms">SignerInformation</A> <B>addCounterSigners</B>(<A HREF="../../../org/bouncycastle/cms/SignerInformation.html" title="class in org.bouncycastle.cms">SignerInformation</A> signerInformation, <A HREF="../../../org/bouncycastle/cms/SignerInformationStore.html" title="class in org.bouncycastle.cms">SignerInformationStore</A> counterSigners)</PRE><DL><DD>Return a signer information object with passed in SignerInformationStore representing counter signatures attached as an unsigned attribute.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>signerInformation</CODE> - the signerInfo to be used as the basis.<DD><CODE>counterSigners</CODE> - signer info objects carrying counter signature.<DT><B>Returns:</B><DD>a copy of the original SignerInformationObject with the changed attributes.</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/cms/SignerId.html" title="class in org.bouncycastle.cms"><B>PREV CLASS</B></A> <A HREF="../../../org/bouncycastle/cms/SignerInformationStore.html" title="class in org.bouncycastle.cms"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/bouncycastle/cms/SignerInformation.html" target="_top"><B>FRAMES</B></A> <A HREF="SignerInformation.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + =
减小字号Ctrl + -
显示快捷键?