aerogear-crypto 0.1.1

org.jboss.aerogear.crypto.encoders
Interface Encoder

All Known Implementing Classes:
Base64, Hex, Raw

public interface Encoder

Provides a level of abstraction for encoding schemes


Field Summary
static Base64 BASE64
           
static Charset CHARSET
           
static Hex HEX
           
static Raw RAW
           
 
Method Summary
 byte[] decode(String data)
          Decode a provided string to bytes
 String encode(byte[] data)
          Encode the provided data to string
 

Field Detail

CHARSET

static final Charset CHARSET

HEX

static final Hex HEX

RAW

static final Raw RAW

BASE64

static final Base64 BASE64
Method Detail

decode

byte[] decode(String data)
Decode a provided string to bytes

Parameters:
data - to be decoded
Returns:
byte array with decoded data

encode

String encode(byte[] data)
Encode the provided data to string

Parameters:
data - to be encoded
Returns:
string with encoded content

aerogear-crypto 0.1.1

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