public static ValidationComponent getValidator() { ValidationComponent v = (ValidationComponent) core.getComponent(COMPONENT_VALIDATOR); if (v == null) { throw new ModuleException("Validator not found"); } else { return v; } }
public static KeyStoreManager getKeyStoreManagerForDecryption() { KeyStoreManager m = (KeyStoreManager) core.getComponent(COMPONENT_KEYSTORE_MANAGER_FOR_DECRYPTION); if (m == null) { throw new ModuleException("Key store manager for decryption not found"); } else { return m; } }
public static KeyStoreManager getKeyStoreManagerForSignature() { KeyStoreManager m = (KeyStoreManager) core.getComponent(COMPONENT_KEYSTORE_MANAGER_FOR_SIGNATURE); if (m == null) { throw new ModuleException("Key store manager for signature not found"); } else { return m; } }