aerogear-crypto 0.1.2

org.jboss.aerogear.crypto.encoders
Class Raw

java.lang.Object
  extended by org.jboss.aerogear.crypto.encoders.Raw
All Implemented Interfaces:
Encoder

public class Raw
extends Object
implements Encoder

Converts raw Strings


Field Summary
 
Fields inherited from interface org.jboss.aerogear.crypto.encoders.Encoder
BASE64, CHARSET, HEX, RAW
 
Constructor Summary
Raw()
           
 
Method Summary
 byte[] decode(String data)
          Decode the provided string
 String encode(byte[] data)
          Encode the provided sequence of bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Raw

public Raw()
Method Detail

decode

public byte[] decode(String data)
Decode the provided string

Specified by:
decode in interface Encoder
Parameters:
data - to be decoded
Returns:
sequence of bytes

encode

public String encode(byte[] data)
Encode the provided sequence of bytes

Specified by:
encode in interface Encoder
Parameters:
data - to be encoded
Returns:
string with the specified array of bytes decoded

aerogear-crypto 0.1.2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.