aerogear-crypto 0.1.0

org.jboss.aerogear.crypto.encoders
Interface Encoder

All Known Implementing Classes:
Hex, Raw

public interface Encoder

Provides a level of abstraction for encoding schemes


Field Summary
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
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.0

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