aerogear-crypto 0.1.2

org.jboss.aerogear.crypto.encoders
Class Base64

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

public class Base64
extends Object
implements Encoder


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

Constructor Detail

Base64

public Base64()
Method Detail

decode

public byte[] decode(String data)
Description copied from interface: Encoder
Decode a provided string to bytes

Specified by:
decode in interface Encoder
Parameters:
data - to be decoded
Returns:
byte array with decoded data

encode

public String encode(byte[] data)
Description copied from interface: Encoder
Encode the provided data to string

Specified by:
encode in interface Encoder
Parameters:
data - to be encoded
Returns:
string with encoded content

aerogear-crypto 0.1.2

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