It keeps state variables, lists of currently registered service providers, a random number object for use in Crypto-J API calls and enables FIPS-related self-testing on a FIPS-validated version of the toolkit.
Public Methods |
| void CertJ:: | setPKCS11Sessions (JSAFE_Session[] SessionArray) |
| | Sets the value of the opened PKCS11 sessions. More...
|
| JSAFE_Session [] CertJ:: | getPKCS11Sessions () |
| | Returns the PKCS11 sessions collected before. More...
|
| | CertJ () throws ProviderManagementException, InvalidUseException |
| | Constructs an instance of CertJ and initializes it with only one service provider, a DefaultRandom provider, which is created by new DefaultRandom ("Default Random"). More...
|
| | CertJ (Provider[] providers) throws ProviderManagementException, InvalidUseException |
| | Constructs an instance of CertJ and initializes it with a list of service handlers given in providers. More...
|
|
void CertJ:: | unregisterAll () |
| | Unregisters all currently registered service providers.
|
| void CertJ:: | registerService (Provider provider) throws InvalidParameterException, ProviderManagementException |
| | Registers an additional service provider given in Provider, after a CertJ object is constructed. More...
|
| void CertJ:: | registerService (Provider provider, int order) throws InvalidParameterException, ProviderManagementException |
| | Registers an additional service provider given in Provider, after a CertJ object is constructed, using a particular ordering. More...
|
| void CertJ:: | unregisterService (int type, String name) throws InvalidParameterException |
| | Unregisters a previously registered service provider. More...
|
| void CertJ:: | addProvider (Provider provider) throws InvalidParameterException, ProviderManagementException |
| | Adds a provider. More...
|
| void CertJ:: | addProvider (Provider provider, int order) throws InvalidParameterException, ProviderManagementException |
| | Adds a provider using a particular ordering. More...
|
| void CertJ:: | removeProvider (int type, String name) throws InvalidParameterException |
| | Removes a provider. More...
|
| Service CertJ:: | bindService (int type, String name) throws InvalidParameterException, ProviderManagementException |
| | Creates a Service of type and name that can be used as a parameter to CertJ API methods that target a specific service provider or set of service providers. More...
|
| Service CertJ:: | bindServices (int type, String[] names) throws InvalidParameterException, ProviderManagementException |
| | Creates a Service consisting of one or more currently-registered service providers. More...
|
| Service CertJ:: | bindServices (int type) throws InvalidParameterException, ProviderManagementException |
| | Binds all the providers of a given type to a Service. More...
|
| void CertJ:: | unbindService (Service service) |
| | Unbinds service providers in the specified service. More...
|
| String [] CertJ:: | listAllProviders () |
| | Returns a String array that contains a descriptive string for each provider registered in this object. More...
|
| String [] CertJ:: | listProviderNames (int providerType) |
| | Returns a String array that contains the names of all the providers registered for a given type. More...
|
| JSAFE_SecureRandom CertJ:: | getRandomObject () throws NoServiceException, RandomException |
| | Returns the random object associated with this object. More...
|
| String CertJ:: | getDevice () |
| | Returns a String that represents a device associated with this object. More...
|
| void CertJ:: | setDevice (String device) |
| | Keeps the device string to be used for crypto operations. More...
|
| boolean CertJ:: | verifyCertPath (CertPathCtx pathCtx, Object startObject) throws InvalidParameterException, NoServiceException, CertPathException |
| | Verifies a certification path from startObject to one of the trusted certificates provided in pathCtx, the certification path context, without returning the path verified. More...
|
| boolean CertJ:: | buildCertPath (CertPathCtx pathCtx, Object startObject, Vector certPath, Vector crlList, Vector crlCerts, Vector policyInfoList) throws InvalidParameterException, NoServiceException, CertPathException |
| | Constructs a path in certPath from startObject to one of the trusted certificates provided in pathCtx, the certification path context. More...
|
| void CertJ:: | getNextCertInPath (CertPathCtx pathCtx, Object baseObject, Vector certList) throws InvalidParameterException, NoServiceException, CertPathException |
| | Collects a set of candidate certificates that have public keys that can verify the signature of baseObject, using the path-processing options and conditions in pathCtx. More...
|
| boolean CertJ:: | validateCertificate (CertPathCtx pathCtx, Certificate cert, JSAFE_PublicKey validationKey) throws InvalidParameterException, NoServiceException, CertPathException |
| | Verifies those aspects of the certification path processing policy that can be determined from the information available in the specified cert, using any parameters specified in pathCtx. More...
|
| CertRevocationInfo CertJ:: | checkCertRevocation (CertPathCtx pathCtx, Certificate cert) throws InvalidParameterException, NoServiceException, CertStatusException |
| | Determines whether a particular certificate is revoked or not based on the information provided in pathCtx. More...
|
| void CertJ:: | importPKCS12 (String pkcs12File, char[] password, DatabaseService database) throws PKCS12Exception |
| | Reads the contents of the PKCS #12 file, pkcs12File, using password as the password and stores it in the specified database service, database. More...
|
| void CertJ:: | importPKCS12 (File pkcs12File, char[] password, DatabaseService database) throws PKCS12Exception |
| | Reads the contents of the PKCS #12 file, pkcs12File, using password as the password and stores it in the specified database service, database. More...
|
Static Public Methods |
| String CertJ:: | getDefaultDevice () |
| | Returns the device string that will be used when an object of this class is instantiated. More...
|
| void CertJ:: | setDefaultDevice (String device) |
| | Sets the value of the default device string associated with this class. More...
|
| String CertJ:: | serviceTypeToString (int type) |
| | Returns a String describing the specified service type. More...
|
| void CertJ:: | addCompatibilityType (CompatibilityType property) |
| | Adds the compatibility type option. More...
|
| void CertJ:: | removeCompatibilityType (CompatibilityType property) |
| | Removes the compatibility type option. More...
|
| boolean CertJ:: | isCompatibilityTypeSet (CompatibilityType type) |
| | Indicates whether the specified compatibility type option is set. More...
|
| final boolean CertJ:: | isFIPS140Compliant () throws InvalidUseException |
| | Indicates whether this toolkit is FIPS 140-2 compliant. More...
|
| int CertJ:: | getState () |
| | Queries the toolkit execution state on a FIPS-validated toolkit. More...
|
| int CertJ:: | getMode () |
| | Returns the mode, either FIPS or NON-FIPS. More...
|
| void CertJ:: | setMode (int newMode) throws InvalidUseException |
| | Sets the FIPS mode to newMode. More...
|
| int CertJ:: | getRole () |
| | Returns the user role. More...
|
| void CertJ:: | setRole (int newRole) throws InvalidUseException |
| | Sets the user mode to newRole. More...
|
| boolean CertJ:: | selfTestPassed () |
| | Retrieves the results of last execution of the power-up self-tests. More...
|
| synchronized boolean CertJ:: | runSelfTests () throws InvalidUseException |
| | Runs the FIPS 140 required power-up self-tests on demand. More...
|
Static Public Attributes |
|
final int CertJ:: | SPT_RANDOM |
| | Denotes a random service provider.
|
|
final int CertJ:: | SPT_DATABASE |
| | Denotes a database service provider.
|
|
final int CertJ:: | SPT_CERT_STATUS |
| | Denotes a certificate revocation status service provider.
|
|
final int CertJ:: | SPT_CERT_PATH |
| | Denotes a certification path processing service provider.
|
|
final int CertJ:: | SPT_PKI |
| | Denotes a PKI service provider.
|
|
final int CertJ:: | SERVICE_ORDER_FIRST |
| | Indicates that the service provider should be inserted before others of the same type.
|
| final int CertJ:: | SERVICE_ORDER_LAST |
| | Indicates that the service provider should be inserted after others of the same type. More...
|
|
final String CertJ:: | CERT_J_VERSION |
| | Indicates the current version of Cert-J.
|
|
final int CertJ:: | NOT_INITIALIZED |
| | Indicates that the Crypto-J toolkit has not been verified.
|
|
final int CertJ:: | UNDER_SELF_TEST |
| | Indicates that the Crypto-J toolkit is under self test.
|
|
final int CertJ:: | OPERATIONAL |
| | Indicates that the Crypto-J toolkit passed verification.
|
|
final int CertJ:: | FAILED |
| | Indicates that the Crypto-J toolkit failed verification; a powerup or a conditional self test has failed.
|
|
final int CertJ:: | FIPS_MODE |
| | Indicates that the toolkit is running in FIPS mode.
|
|
final int CertJ:: | NON_FIPS_MODE |
| | Indicates that the toolkit is running in non-FIPS mode.
|
|
final int CertJ:: | FIPS_TESTING_MODE |
| | Indicates that the toolkit is running in FIPS testing mode.
|
|
final int CertJ:: | CRYPTO_OFFICER_ROLE |
| | Denotes the Crypto Officer role.
|
|
final int CertJ:: | USER_ROLE |
| | Denotes the normal user role.
|