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 String engineToString() {
   return core.toString();
 }
 protected byte[] engineGetEncoded(String encodingMethod) throws IOException {
   return core.getEncoded();
 }
 protected byte[] engineGetEncoded() throws IOException {
   return core.getEncoded();
 }
 protected AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec)
     throws InvalidParameterSpecException {
   return core.getParameterSpec(paramSpec);
 }
 protected void engineInit(byte[] encoded, String decodingMethod) throws IOException {
   core.init(encoded, decodingMethod);
 }
 protected void engineInit(byte[] encoded) throws IOException {
   core.init(encoded);
 }
 protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException {
   core.init(paramSpec);
 }