Package org.ejbca.core.protocol.ocsp.OcspUtilMockups

Examples of org.ejbca.core.protocol.ocsp.OcspUtilMockups.MockRSAPublicKey


    assertEquals(certId, myid);
  }

  public void test02getSigningAlgFromAlgSelection() throws Exception {
   
    RSAPublicKey rsa = new MockRSAPublicKey();
    assertEquals("SHA1WithRSA", OCSPUtil.getSigningAlgFromAlgSelection("SHA1WithRSA;SHA1WithECDSA", rsa));
    assertEquals("SHA1WithRSA", OCSPUtil.getSigningAlgFromAlgSelection("SHA256WithECDSA;SHA1WithECDSA;SHA1WithRSA", rsa));
    assertEquals("SHA1WithRSA", OCSPUtil.getSigningAlgFromAlgSelection("SHA1WithRSA", rsa));
    assertEquals("SHA1WithRSA", OCSPUtil.getSigningAlgFromAlgSelection("SHA1WithECDSA;SHA1WithRSA", rsa));
View Full Code Here

TOP

Related Classes of org.ejbca.core.protocol.ocsp.OcspUtilMockups.MockRSAPublicKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.