Example usage for org.bouncycastle.cms CMSSignedGenerator ENCRYPTION_RSA

List of usage examples for org.bouncycastle.cms CMSSignedGenerator ENCRYPTION_RSA

Introduction

In this page you can find the example usage for org.bouncycastle.cms CMSSignedGenerator ENCRYPTION_RSA.

Prototype

String ENCRYPTION_RSA

To view the source code for org.bouncycastle.cms CMSSignedGenerator ENCRYPTION_RSA.

Click Source Link

Usage

From source file:net.ripe.rpki.commons.provisioning.cms.ProvisioningCmsObjectParser.java

License:BSD License

/**
 * http://tools.ietf.org/html/draft-ietf-sidr-rescerts-provisioning-09#section-3.1.1.6.5
 * http://tools.ietf.org/html/draft-huston-sidr-rpki-algs-00#section-2
 *///from   w ww  .  j a  va2 s  .  co  m
private void verifyEncryptionAlgorithm(SignerInformation signer) {
    validationResult.rejectIfFalse(CMSSignedGenerator.ENCRYPTION_RSA.equals(signer.getEncryptionAlgOID()),
            ENCRYPTION_ALGORITHM);
}