Codota Logo
SignedData.getSignerInfos
Code IndexAdd Codota to your IDE (free)

How to use
getSignerInfos
method
in
org.spongycastle.asn1.cms.SignedData

Best Java code snippets using org.spongycastle.asn1.cms.SignedData.getSignerInfos (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: com.madgag.spongycastle/pkix

/**
 * Return if this is object represents a detached signature.
 *
 * @return true if this message represents a detached signature, false otherwise.
 */
public boolean isDetachedSignature()
{
  return signedData.getEncapContentInfo().getContent() == null && signedData.getSignerInfos().size() > 0;
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * Return if this is object represents a certificate management message.
 *
 * @return true if the message has no signers or content, false otherwise.
 */
public boolean isCertificateManagementMessage()
{
  return signedData.getEncapContentInfo().getContent() == null && signedData.getSignerInfos().size() == 0;
}
origin: com.madgag.spongycastle/pkix

/**
 * Return if this is object represents a certificate management message.
 *
 * @return true if the message has no signers or content, false otherwise.
 */
public boolean isCertificateManagementMessage()
{
  return signedData.getEncapContentInfo().getContent() == null && signedData.getSignerInfos().size() == 0;
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * Return if this is object represents a detached signature.
 *
 * @return true if this message represents a detached signature, false otherwise.
 */
public boolean isDetachedSignature()
{
  return signedData.getEncapContentInfo().getContent() == null && signedData.getSignerInfos().size() > 0;
}
origin: com.madgag.spongycastle/pkix

/**
 * return the collection of signers that are associated with the
 * signatures for the message.
 */
public SignerInformationStore getSignerInfos()
{
  if (signerInfoStore == null)
  {
    ASN1Set         s = signedData.getSignerInfos();
    List            signerInfos = new ArrayList();
    for (int i = 0; i != s.size(); i++)
    {
      SignerInfo info = SignerInfo.getInstance(s.getObjectAt(i));
      ASN1ObjectIdentifier contentType = signedData.getEncapContentInfo().getContentType();
      if (hashes == null)
      {
        signerInfos.add(new SignerInformation(info, contentType, signedContent, null));
      }
      else
      {
        Object obj = hashes.keySet().iterator().next();
        byte[] hash = (obj instanceof String) ? (byte[])hashes.get(info.getDigestAlgorithm().getAlgorithm().getId()) : (byte[])hashes.get(info.getDigestAlgorithm().getAlgorithm());
        signerInfos.add(new SignerInformation(info, contentType, null, hash));
      }
    }
    signerInfoStore = new SignerInformationStore(signerInfos);
  }
  return signerInfoStore;
}
origin: es.gob.afirma/afirma-crypto-cades

final SignedData sd = SignedData.getInstance(datos);
final ASN1Set signerInfosSd = sd.getSignerInfos();
origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * return the collection of signers that are associated with the
 * signatures for the message.
 */
public SignerInformationStore getSignerInfos()
{
  if (signerInfoStore == null)
  {
    ASN1Set         s = signedData.getSignerInfos();
    List            signerInfos = new ArrayList();
    for (int i = 0; i != s.size(); i++)
    {
      SignerInfo info = SignerInfo.getInstance(s.getObjectAt(i));
      ASN1ObjectIdentifier contentType = signedData.getEncapContentInfo().getContentType();
      if (hashes == null)
      {
        signerInfos.add(new SignerInformation(info, contentType, signedContent, null));
      }
      else
      {
        Object obj = hashes.keySet().iterator().next();
        byte[] hash = (obj instanceof String) ? (byte[])hashes.get(info.getDigestAlgorithm().getAlgorithm().getId()) : (byte[])hashes.get(info.getDigestAlgorithm().getAlgorithm());
        signerInfos.add(new SignerInformation(info, contentType, null, hash));
      }
    }
    signerInfoStore = new SignerInformationStore(signerInfos);
  }
  return signerInfoStore;
}
origin: es.gob.afirma/afirma-crypto-cms-enveloper

final ASN1Sequence datos = (ASN1Sequence) doj.getObject();
final SignedData sd = SignedData.getInstance(datos);
final ASN1Set signerInfosSd = sd.getSignerInfos();
origin: com.madgag.spongycastle/bcpkix-jdk15on

certSet,
crlSet,
signedData.signedData.getSignerInfos());
origin: com.madgag.spongycastle/pkix

certSet,
crlSet,
signedData.signedData.getSignerInfos());
origin: es.gob.afirma/afirma-crypto-core-pkcs7

final ASN1Set signerInfosSd = sd.getSignerInfos();
origin: es.gob.afirma/afirma-crypto-core-pkcs7

try {
  final SignedData sd = SignedData.getInstance(contentSignedData);
  signerInfosSd = sd.getSignerInfos();
  certificates = sd.getCertificates();
org.spongycastle.asn1.cmsSignedDatagetSignerInfos

Popular methods of SignedData

  • <init>
  • getInstance
    Return a SignedData object from the given object. Accepted inputs: * null → null * SignedData obj
  • getCertificates
  • getEncapContentInfo
  • calculateVersion
  • checkForVersion3
  • getCRLs
  • getDigestAlgorithms
  • getVersion
  • toASN1Primitive
    Produce an object suitable for an ASN1OutputStream. SignedData ::= SEQUENCE { version CMSVersion,

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • setContentView (Activity)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • BoxLayout (javax.swing)
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now