1 package org.apache.turbine.services.crypto; 2 3 18 19 import java.security.NoSuchAlgorithmException ; 20 21 import org.apache.turbine.services.TurbineServices; 22 23 33 public abstract class TurbineCrypto 34 { 35 41 42 public static CryptoService getService() 43 { 44 return (CryptoService) TurbineServices.getInstance() 45 .getService(CryptoService.SERVICE_NAME); 46 } 47 48 56 public static CryptoAlgorithm getCryptoAlgorithm(String algo) 57 throws NoSuchAlgorithmException  58 { 59 return getService().getCryptoAlgorithm(algo); 60 } 61 62 } 63 | Popular Tags |