if (this.myOpaqueCredentials.credentialstring != null) {
// Encrypt our credentials using the spring-configured password
// encryption service
IStringEncryptionService encryptionService = PasswordEncryptionServiceLocator.getPasswordEncryptionService();
String encryptedPassword = encryptionService.encrypt(new String(this.myOpaqueCredentials.credentialstring));
byte[] encryptedPasswordBytes = encryptedPassword.getBytes();
// Save our encrypted credentials so the parent's authenticate()
// method doesn't blow them away.
this.cachedcredentials = new byte[encryptedPasswordBytes.length];