com.pheox.jcapi
Class JCAPISignature.SHA256withRSA

java.lang.Object
  extended by java.security.SignatureSpi
      extended by com.pheox.jcapi.JCAPISignature
          extended by com.pheox.jcapi.JCAPISignature.SHA256withRSA
Enclosing class:
JCAPISignature

public static final class JCAPISignature.SHA256withRSA
extends JCAPISignature

The SHA-256 hashing class used for defining SHA256withRSA in signatures.

An instance of this class must be created by the JCE framework only.

This class uses the default MS CAPI RSA CSP (see method JCAPIProperties.getRSACSP()) and the provider type of the default MS CAPI RSA CSP (see method JCAPIProperties.getCachedProviderTypeByCSP(String)).

Here is how to create a SHA-256/RSA based JCAPI signature instance through the JCE framework:
  Signature s = Signature.getInstance("SHA256withRSA", "JCAPI");

To learn more about how signatures can be used, please look at the following example programs that can be found in JCAPI's examples directory, by default located in C:\<application data directory>\JCAPI\examples:

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.pheox.jcapi.JCAPISignature
JCAPISignature.MD2withRSA, JCAPISignature.MD4withRSA, JCAPISignature.MD5withRSA, JCAPISignature.NONEwithRSA, JCAPISignature.SHA1withDSA, JCAPISignature.SHA1withRSA, JCAPISignature.SHA256withRSA, JCAPISignature.SHA384withRSA, JCAPISignature.SHA512withRSA, JCAPISignature.SHAMD5withRSA
 
Field Summary
 
Fields inherited from class java.security.SignatureSpi
appRandom
 
Constructor Summary
JCAPISignature.SHA256withRSA()
          Default constructor.
 
Method Summary
 
Methods inherited from class com.pheox.jcapi.JCAPISignature
engineGetParameter, engineInitSign, engineInitVerify, engineSetParameter, engineSign, engineSign, engineUpdate, engineUpdate, engineVerify, engineVerify
 
Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineInitSign, engineSetParameter, engineUpdate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCAPISignature.SHA256withRSA

public JCAPISignature.SHA256withRSA()
Default constructor.

Since:
2.0


Copyright © 2011 Pheox. All Rights Reserved.