private void persistKey(SecretKey key) throws Exception {
  ConfigurationImpl config=new ConfigurationImpl();
  config.setKind(CONFIG_KIND);
  config.setId(_encryptId);
  config.setConfig(CONFIG_KIND,new String(Base64.encodeBase64(key.getEncoded()),UTF_8));
  _coordinator.persistServiceConfiguration(config);
  _key=key;
}

private void persistKey ( SecretKey key ) throws Exception { ConfigurationImpl config = new ConfigurationImpl ( ) ; config . setKind ( CONFIG_KIND ) ; config . setId ( _encryptId ) ; config . setConfig ( CONFIG_KIND , new String ( Base64 . encodeBase64 ( key . getEncoded ( ) ) , UTF_8 ) ) ; _coordinator . persistServiceConfiguration ( config ) ; _key = key ; }
persists key to coordinator
