org.universAAL.ri.gateway.communicator.service.impl
Enum SecurityUtils

Package class diagram package SecurityUtils
java.lang.Object
  extended by java.lang.Enum<SecurityUtils>
      extended by org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils
All Implemented Interfaces:
Serializable, Comparable<SecurityUtils>

public enum SecurityUtils
extends Enum<SecurityUtils>


Enum Constant Summary
Instance
           
 
Method Summary
 byte[] decrypt(byte[] data)
           
 byte[] encrypt(byte[] data)
           
 void initialize(String encryptionKey)
           
static SecurityUtils valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecurityUtils[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Instance

public static final SecurityUtils Instance
Method Detail

values

public static SecurityUtils[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SecurityUtils c : SecurityUtils.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SecurityUtils valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

initialize

public void initialize(String encryptionKey)

encrypt

public byte[] encrypt(byte[] data)
               throws org.bouncycastle.crypto.CryptoException
Throws:
org.bouncycastle.crypto.CryptoException

decrypt

public byte[] decrypt(byte[] data)
               throws org.bouncycastle.crypto.CryptoException
Throws:
org.bouncycastle.crypto.CryptoException


Copyright © 2014 universAAL Consortium. All Rights Reserved.