Tabnine Logo
SignedData
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.madgag/sc-light-jdk15on

public static SignedData getInstance(
  Object  o)
{
  if (o instanceof SignedData)
  {
    return (SignedData)o;
  }
  else if (o != null)
  {
    return new SignedData(ASN1Sequence.getInstance(o));
  }
  return null;
}
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/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

cms.signedData = new SignedData(signedData.signedData.getDigestAlgorithms(),
              signedData.signedData.getEncapContentInfo(),
              certSet,
              crlSet,
              signedData.signedData.getSignerInfos());
origin: es.gob.afirma/afirma-crypto-core-pkcs7

ASN1Set certificates = null;
try {
  final SignedData sd = SignedData.getInstance(contentSignedData);
  signerInfosSd = sd.getSignerInfos();
  certificates = sd.getCertificates();
origin: es.gob.afirma/afirma-crypto-cades

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

ASN1Sequence        sD = (ASN1Sequence)signedData.signedData.toASN1Primitive();
cms.signedData = SignedData.getInstance(new BERSequence(vec));
origin: com.madgag.spongycastle/bcpkix-jdk15on

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

private SignedData getSignedData()
  throws CMSException
{
  try
  {
    return SignedData.getInstance(contentInfo.getContent());
  }
  catch (ClassCastException e)
  {
    throw new CMSException("Malformed content.", e);
  }
  catch (IllegalArgumentException e)
  {
    throw new CMSException("Malformed content.", e);
  }
}
origin: com.madgag.spongycastle/pkix

/**
 * Return any X.509 certificate objects in this SignedData structure as a Store of X509CertificateHolder objects.
 *
 * @return a Store of X509CertificateHolder objects.
 */
public Store getCertificates()
{
  return HELPER.getCertificates(signedData.getCertificates());
}
origin: com.madgag.spongycastle/pkix

/**
 * Return any X.509 CRL objects in this SignedData structure as a Store of X509CRLHolder objects.
 *
 * @return a Store of X509CRLHolder objects.
 */
public Store getCRLs()
{
  return HELPER.getCRLs(signedData.getCRLs());
}
origin: com.madgag.spongycastle/pkix

/**
 * Return the version number for this object
 */
public int getVersion()
{
  return signedData.getVersion().getValue().intValue();
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * Return the digest algorithm identifiers for the SignedData object
 *
 * @return the set of digest algorithm identifiers
 */
public Set<AlgorithmIdentifier> getDigestAlgorithmIDs()
{
  Set<AlgorithmIdentifier> digests = new HashSet<AlgorithmIdentifier>(signedData.getDigestAlgorithms().size());
  for (Enumeration en = signedData.getDigestAlgorithms().getObjects(); en.hasMoreElements();)
  {
    digests.add(AlgorithmIdentifier.getInstance(en.nextElement()));
  }
  return Collections.unmodifiableSet(digests);
}
origin: com.madgag/sc-light-jdk15on

public SignedData(
  ASN1Set     digestAlgorithms,
  ContentInfo contentInfo,
  ASN1Set     certificates,
  ASN1Set     crls,
  ASN1Set     signerInfos)
{
  this.version = calculateVersion(contentInfo.getContentType(), certificates, crls, signerInfos);
  this.digestAlgorithms = digestAlgorithms;
  this.contentInfo = contentInfo;
  this.certificates = certificates;
  this.crls = crls;
  this.signerInfos = signerInfos;
  this.crlsBer = crls instanceof BERSet;
  this.certsBer = certificates instanceof BERSet;
}
origin: com.madgag.spongycastle/core

if (checkForVersion3(signerInfs))
origin: com.madgag.spongycastle/pkix

cms.signedData = new SignedData(signedData.signedData.getDigestAlgorithms(),
              signedData.signedData.getEncapContentInfo(),
              certSet,
              crlSet,
              signedData.signedData.getSignerInfos());
origin: es.gob.afirma/afirma-crypto-cms-enveloper

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

ASN1Sequence        sD = (ASN1Sequence)signedData.signedData.toASN1Primitive();
cms.signedData = SignedData.getInstance(new BERSequence(vec));
origin: com.madgag.spongycastle/pkix

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

private SignedData getSignedData()
  throws CMSException
{
  try
  {
    return SignedData.getInstance(contentInfo.getContent());
  }
  catch (ClassCastException e)
  {
    throw new CMSException("Malformed content.", e);
  }
  catch (IllegalArgumentException e)
  {
    throw new CMSException("Malformed content.", e);
  }
}
org.spongycastle.asn1.cmsSignedData

Javadoc

a signed data object.

Most used methods

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

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now