encPassword.getEncKey());
return decrypt(key, encPassword.getEncData());
}
else if (credentials instanceof SelfEncryptedCredentials) {
SelfEncryptedCredentials encCred
= (SelfEncryptedCredentials) credentials;
byte []encData = encCred.getEncData();
Server server = Server.getCurrent();
String adminCookie = server.getAdminCookie();