Top Description Inners Fields Constructors Methods
org.eclipse.persistence.internal.security

public Class JCEEncryptor

extends Object
implements Securable
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.security.Securable
Imports
java.io.ByteArrayInputStream, .IOException, .ObjectInputStream, javax.crypto.Cipher, .CipherInputStream, .IllegalBlockSizeException, .SecretKey, .SecretKeyFactory, javax.crypto.spec.DESKeySpec, .IvParameterSpec, .SecretKeySpec, org.eclipse.persistence.exceptions.ConversionException, .ValidationException, org.eclipse.persistence.internal.helper.Helper

EclipseLink reference implementation for password encryption.
Author
Guy Pelletier

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
JCEEncryptor.Synergizer

Returns multitaskers for the ciphers.

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private final Cipher
private final Cipher
private final Cipher
private static final String
private final Cipher

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized String
public synchronized String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AES_CBCback to summary
private static final String AES_CBC
AES_ECBback to summary
private static final String AES_ECB
decryptCipherAES_CBCback to summary
private final Cipher decryptCipherAES_CBC
decryptCipherAES_ECBback to summary
private final Cipher decryptCipherAES_ECB
decryptCipherDES_ECBback to summary
private final Cipher decryptCipherDES_ECB
DES_ECBback to summary
private static final String DES_ECB
encryptCipherAES_CBCback to summary
private final Cipher encryptCipherAES_CBC

Constructor Detail

JCEEncryptorback to summary
public JCEEncryptor() throws Exception

Method Detail

decryptPasswordback to summary
public synchronized String decryptPassword(String encryptedPswd)

Implements org.eclipse.persistence.internal.security.Securable.decryptPassword.

Decrypts a string. Will throw a validation exception. Handles backwards compatibility for older encrypted strings.

Annotations
@Override
encryptPasswordback to summary
public synchronized String encryptPassword(String password)

Implements org.eclipse.persistence.internal.security.Securable.encryptPassword.

Encrypts a string. Will throw a validation exception.

Annotations
@Override
org.eclipse.persistence.internal.security back to summary

private Class JCEEncryptor.Synergizer

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.persistence.internal.security.JCEEncryptor.Synergizer

Returns multitaskers for the ciphers. :-)

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static SecretKey
private static SecretKey
private static SecretKey
private static IvParameterSpec
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Synergizerback to summary
private Synergizer()

Method Detail

getAESCBCMultitaskerback to summary
private static SecretKey getAESCBCMultitasker() throws Exception
getAESMultitaskerback to summary
private static SecretKey getAESMultitasker() throws Exception
getDESMultitaskerback to summary
private static SecretKey getDESMultitasker() throws Exception
getIvSpecback to summary
private static IvParameterSpec getIvSpec()