Example #1
0
 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec)
     throws InvalidParameterSpecException {
   if (AlgorithmParameterSpec.class.isAssignableFrom(paramSpec)) {
     return core.getParameterSpec(paramSpec);
   } else {
     throw new InvalidParameterSpecException("Inappropriate parameter Specification");
   }
 }
 protected AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec)
     throws InvalidParameterSpecException {
   return core.getParameterSpec(paramSpec);
 }