Exemplo n.º 1
0
 public static ValidationComponent getValidator() {
   ValidationComponent v = (ValidationComponent) core.getComponent(COMPONENT_VALIDATOR);
   if (v == null) {
     throw new ModuleException("Validator not found");
   } else {
     return v;
   }
 }
Exemplo n.º 2
0
 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;
   }
 }
Exemplo n.º 3
0
 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;
   }
 }