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

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

Best Java code snippets using org.spongycastle.asn1.cms.SignedData.getEncapContentInfo (Showing top 19 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

public ASN1ObjectIdentifier getContentType()
{
  return signedData.getEncapContentInfo().getContentType();
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

public ASN1ObjectIdentifier getContentType()
{
  return signedData.getEncapContentInfo().getContentType();
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * Return the a string representation of the OID associated with the
 * encapsulated content info structure carried in the signed data.
 * 
 * @return the OID for the content type.
 */
public String getSignedContentTypeOID()
{
  return signedData.getEncapContentInfo().getContentType().getId();
}

origin: com.madgag.spongycastle/pkix

/**
 * Return the a string representation of the OID associated with the
 * encapsulated content info structure carried in the signed data.
 * 
 * @return the OID for the content type.
 */
public String getSignedContentTypeOID()
{
  return signedData.getEncapContentInfo().getContentType().getId();
}

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

/**
 * Constructs DVCRequest from CMS SignedData object.
 *
 * @param signedData the CMS SignedData object containing the request
 * @throws org.spongycastle.dvcs.DVCSConstructionException
 */
public DVCSResponse(CMSSignedData signedData)
  throws DVCSConstructionException
{
  this(SignedData.getInstance(signedData.toASN1Structure().getContent()).getEncapContentInfo());
}
origin: com.madgag.spongycastle/pkix

/**
 * Constructs DVCRequest from CMS SignedData object.
 *
 * @param signedData the CMS SignedData object containing the request
 * @throws DVCSConstructionException
 */
public DVCSRequest(CMSSignedData signedData)
  throws DVCSConstructionException
{
  this(SignedData.getInstance(signedData.toASN1Structure().getContent()).getEncapContentInfo());
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * Constructs DVCRequest from CMS SignedData object.
 *
 * @param signedData the CMS SignedData object containing the request
 * @throws DVCSConstructionException
 */
public DVCSRequest(CMSSignedData signedData)
  throws DVCSConstructionException
{
  this(SignedData.getInstance(signedData.toASN1Structure().getContent()).getEncapContentInfo());
}
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/bcpkix-jdk15on

/**
 * Constructs DVCResponse from CMS SignedData object.
 *
 * @param signedData the CMS SignedData object containing the request
 * @throws org.spongycastle.dvcs.DVCSConstructionException
 */
public DVCSResponse(CMSSignedData signedData)
  throws DVCSConstructionException
{
  this(SignedData.getInstance(signedData.toASN1Structure().getContent()).getEncapContentInfo());
}
origin: com.madgag.spongycastle/pkix

public CMSSignedData(
  ContentInfo sigData)
  throws CMSException
{
  this.contentInfo = sigData;
  this.signedData = getSignedData();
  //
  // this can happen if the signed message is sent simply to send a
  // certificate chain.
  //
  ASN1Encodable content = signedData.getEncapContentInfo().getContent();
  if (content != null)
  {
    if (content instanceof ASN1OctetString)
    {
      this.signedContent = new CMSProcessableByteArray(signedData.getEncapContentInfo().getContentType(),
        ((ASN1OctetString)content).getOctets());
    }
    else
    {
      this.signedContent = new PKCS7ProcessableObject(signedData.getEncapContentInfo().getContentType(), content);
    }
  }
  else
  {
    this.signedContent = null;
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

public CMSSignedData(
  ContentInfo sigData)
  throws CMSException
{
  this.contentInfo = sigData;
  this.signedData = getSignedData();
  //
  // this can happen if the signed message is sent simply to send a
  // certificate chain.
  //
  ASN1Encodable content = signedData.getEncapContentInfo().getContent();
  if (content != null)
  {
    if (content instanceof ASN1OctetString)
    {
      this.signedContent = new CMSProcessableByteArray(signedData.getEncapContentInfo().getContentType(),
        ((ASN1OctetString)content).getOctets());
    }
    else
    {
      this.signedContent = new PKCS7ProcessableObject(signedData.getEncapContentInfo().getContentType(), content);
    }
  }
  else
  {
    this.signedContent = null;
  }
}
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: 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-core-pkcs7

final ContentInfo ci = sd.getEncapContentInfo();
origin: com.madgag.spongycastle/bcpkix-jdk15on

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

signedData.signedData.getEncapContentInfo(),
certSet,
crlSet,
org.spongycastle.asn1.cmsSignedDatagetEncapContentInfo

Popular methods of SignedData

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

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JPanel (javax.swing)
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