Codota Logo
DSSASN1Utils.getAsn1SequenceFromDerOctetString
Code IndexAdd Codota to your IDE (free)

How to use
getAsn1SequenceFromDerOctetString
method
in
eu.europa.ec.markt.dss.DSSASN1Utils

Best Java code snippets using eu.europa.ec.markt.dss.DSSASN1Utils.getAsn1SequenceFromDerOctetString (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: arhs/sd-dss

public static List<String> getPolicyIdentifiers(final X509Certificate cert) {
  final byte[] certificatePolicies = cert.getExtensionValue(X509Extension.certificatePolicies.getId());
  if (certificatePolicies == null) {
    return Collections.emptyList();
  }
  ASN1Sequence seq = DSSASN1Utils.getAsn1SequenceFromDerOctetString(certificatePolicies);
  final List<String> policyIdentifiers = new ArrayList<String>();
  for (int ii = 0; ii < seq.size(); ii++) {
    final PolicyInformation policyInfo = PolicyInformation.getInstance(seq.getObjectAt(ii));
    // System.out.println("\t----> PolicyIdentifier: " + policyInfo.getPolicyIdentifier().getId());
    policyIdentifiers.add(policyInfo.getPolicyIdentifier().getId());
  }
  return policyIdentifiers;
}
origin: arhs/sd-dss

/**
 * @param x509Certificate
 * @return
 */
public static List<String> getQCStatementsIdList(final X509Certificate x509Certificate) {
  final List<String> extensionIdList = new ArrayList<String>();
  final byte[] qcStatement = x509Certificate.getExtensionValue(Extension.qCStatements.getId());
  if (qcStatement != null) {
    final ASN1Sequence seq = DSSASN1Utils.getAsn1SequenceFromDerOctetString(qcStatement);
    // Sequence of QCStatement
    for (int ii = 0; ii < seq.size(); ii++) {
      final QCStatement statement = QCStatement.getInstance(seq.getObjectAt(ii));
      extensionIdList.add(statement.getStatementId().getId());
    }
  }
  return extensionIdList;
}
origin: arhs/sd-dss

final ASN1Sequence asn1Sequence = DSSASN1Utils.getAsn1SequenceFromDerOctetString(authInfoAccessExtensionValue);
final AuthorityInformationAccess authorityInformationAccess = AuthorityInformationAccess.getInstance(asn1Sequence);
final AccessDescription[] accessDescriptions = authorityInformationAccess.getAccessDescriptions();
origin: arhs/sd-dss

final ASN1Sequence asn1Sequence = DSSASN1Utils.getAsn1SequenceFromDerOctetString(crlDistributionPointsBytes);
final CRLDistPoint distPoint = CRLDistPoint.getInstance(asn1Sequence);
final DistributionPoint[] distributionPoints = distPoint.getDistributionPoints();
origin: arhs/sd-dss

  asn1Sequence = DSSASN1Utils.getAsn1SequenceFromDerOctetString(authInfoAccessExtensionValue);
} catch (DSSException e) {
  return null;
eu.europa.ec.markt.dssDSSASN1UtilsgetAsn1SequenceFromDerOctetString

Javadoc

This method returns the ASN1Sequence encapsulated in DEROctetString. The DEROctetString is represented as byte array.

Popular methods of DSSASN1Utils

  • getDEREncoded
    This method return DER encoded ASN1 attribute. The IOException is transformed in DSSException.
  • toASN1Primitive
    This method returns T extends ASN1Primitive created from array of bytes. The IOException is transfor
  • createTimeStampToken
    This method generates a bouncycastle TimeStampToken based on base 64 encoded String.
  • generateCMSSignedData
    This method generate CMSSignedData using the provided # CMSSignedDataGenerator, the content and the
  • getBasicOCSPResp
    This method returns the BasicOCSPResp from a OCSPResp.
  • getBasicOcspResp
    This method allows to create a BasicOCSPResp from a DERSequence.
  • getEncoded
    Returns an ASN.1 encoded bytes representing the TimeStampToken
  • getOcspResp
    This method allows to create a OCSPResp from a DERSequence.
  • getSignedAttributes
  • isDEROctetStringNull
    This method checks if a given DEROctetString is null.
  • toDate
  • toString
  • toDate,
  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ImageIO (javax.imageio)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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