org.kuali.rice.core.impl.encryption
Class NoEncryptionEncryptionServiceImpl

java.lang.Object
  extended by org.kuali.rice.core.impl.encryption.NoEncryptionEncryptionServiceImpl
All Implemented Interfaces:
EncryptionService

public class NoEncryptionEncryptionServiceImpl
extends Object
implements EncryptionService

Implementation of encryption service for demonstration.


Field Summary
 
Fields inherited from interface org.kuali.rice.core.api.encryption.EncryptionService
ENCRYPTION_POST_PREFIX, HASH_POST_PREFIX
 
Constructor Summary
NoEncryptionEncryptionServiceImpl()
           
 
Method Summary
 String decrypt(String ciphertext)
          Decrypts a value
 byte[] decryptBytes(byte[] ciphertext)
          This overridden method ...
 String encrypt(Object valueToHide)
          Encrypts a value
 byte[] encryptBytes(byte[] valueToHide)
          This overridden method ...
 String hash(Object valueToHide)
          Hashes a value (for one-way transformations)
 boolean isEnabled()
          Returns true if encryption is enabled within KEW, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoEncryptionEncryptionServiceImpl

public NoEncryptionEncryptionServiceImpl()
Method Detail

isEnabled

public boolean isEnabled()
Description copied from interface: EncryptionService
Returns true if encryption is enabled within KEW, false otherwise.

Specified by:
isEnabled in interface EncryptionService
See Also:
org.kuali.rice.ksb.security.EncryptionService#isEnabled()

encrypt

public String encrypt(Object valueToHide)
               throws GeneralSecurityException
Description copied from interface: EncryptionService
Encrypts a value

Specified by:
encrypt in interface EncryptionService
Parameters:
valueToHide - - original value
Returns:
encrypted value
Throws:
GeneralSecurityException

decrypt

public String decrypt(String ciphertext)
               throws GeneralSecurityException
Description copied from interface: EncryptionService
Decrypts a value

Specified by:
decrypt in interface EncryptionService
Parameters:
ciphertext - - encrypted value
Returns:
decrypted value
Throws:
GeneralSecurityException

hash

public String hash(Object valueToHide)
            throws GeneralSecurityException
Description copied from interface: EncryptionService
Hashes a value (for one-way transformations)

Specified by:
hash in interface EncryptionService
Parameters:
valueToHide - - original value
Returns:
encrypted value
Throws:
GeneralSecurityException

decryptBytes

public byte[] decryptBytes(byte[] ciphertext)
                    throws GeneralSecurityException
This overridden method ...

Specified by:
decryptBytes in interface EncryptionService
Parameters:
ciphertext - - encrypted value
Returns:
decrypted value
Throws:
GeneralSecurityException
See Also:
EncryptionService.decryptBytes(byte[])

encryptBytes

public byte[] encryptBytes(byte[] valueToHide)
                    throws GeneralSecurityException
This overridden method ...

Specified by:
encryptBytes in interface EncryptionService
Parameters:
valueToHide - - original value
Returns:
encrypted value
Throws:
GeneralSecurityException
See Also:
EncryptionService.encryptBytes(byte[])


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.