/** * 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 _signedContentType.getId(); }
public String getAlgorithmName(ASN1ObjectIdentifier objectIdentifier) { String name = (String)algorithms.get(objectIdentifier); return (name != null) ? name : objectIdentifier.getId(); }
String getKeyAlgorithmName(ASN1ObjectIdentifier oid) { String name = (String)symmetricKeyAlgNames.get(oid); if (name != null) { return name; } return oid.getId(); } }
String getBaseCipherName(ASN1ObjectIdentifier algorithm) { String name = (String)BASE_CIPHER_NAMES.get(algorithm); if (name == null) { return algorithm.getId(); } return name; }
String getBaseCipherName(ASN1ObjectIdentifier algorithm) { String name = (String)BASE_CIPHER_NAMES.get(algorithm); if (name == null) { return algorithm.getId(); } return name; }
private static boolean isDeltaCRL(X509CRL crl) { Set critical = crl.getCriticalExtensionOIDs(); if (critical == null) { return false; } return critical.contains(Extension.deltaCRLIndicator.getId()); }
/** * return the object identifier for the key encryption algorithm. * * @return OID for key encryption algorithm. */ public String getKeyEncryptionAlgOID() { return keyEncAlg.getAlgorithm().getId(); }
public CMSProcessableByteArray( byte[] bytes) { this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), bytes); }
public CMSProcessableFile( File file, int bufSize) { this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), file, bufSize); }
/** * return the object identifier for the signature. */ public String getEncryptionAlgOID() { return encryptionAlgorithm.getAlgorithm().getId(); }
/** * return the object identifier for the content encryption algorithm. */ public String getEncryptionAlgOID() { return encAlg.getAlgorithm().getId(); }
public CMSTypedStream( String oid, InputStream in) { this(new ASN1ObjectIdentifier(oid), in, BUF_SIZ); }
public static Collection getIssuerAlternativeNames(X509Certificate cert) throws CertificateParsingException { byte[] extVal = cert.getExtensionValue(X509Extension.issuerAlternativeName.getId()); return getAlternativeNames(extVal); }
public static Collection getSubjectAlternativeNames(X509Certificate cert) throws CertificateParsingException { byte[] extVal = cert.getExtensionValue(X509Extension.subjectAlternativeName.getId()); return getAlternativeNames(extVal); }
public Collection getIssuerAlternativeNames() throws CertificateParsingException { return getAlternativeNames(getExtensionBytes(Extension.issuerAlternativeName.getId())); }
public Collection getSubjectAlternativeNames() throws CertificateParsingException { return getAlternativeNames(getExtensionBytes(Extension.subjectAlternativeName.getId())); }
/** * 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(); }
/** * generate an enveloped object that contains an CMS Enveloped Data * object using the given encryptor. */ public OutputStream open( OutputStream out, OutputEncryptor encryptor) throws CMSException, IOException { return doOpen(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), out, encryptor); }