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