org.jboss.aerogear.crypto.encoders
Class Base64
java.lang.Object
org.jboss.aerogear.crypto.encoders.Base64
- All Implemented Interfaces:
- Encoder
public class Base64
- extends Object
- implements Encoder
|
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 |
Base64
public Base64()
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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.