|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shiro.util.SimpleByteSource
public class SimpleByteSource
Very simple ByteSource implementation that maintains an internal byte[] array and uses the
Hex and Base64 codec classes to support the
toHex() and toBase64() implementations.
| Constructor Summary | |
|---|---|
SimpleByteSource(byte[] bytes)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
byte[] |
getBytes()
Returns the wrapped byte array. |
int |
hashCode()
|
String |
toBase64()
Returns the Base 64-formatted String representation of the underlying wrapped byte array. |
String |
toHex()
Returns the Hex-formatted String representation of the underlying wrapped byte array. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleByteSource(byte[] bytes)
| Method Detail |
|---|
public byte[] getBytes()
ByteSource
getBytes in interface ByteSourcepublic String toHex()
ByteSource
toHex in interface ByteSourcepublic String toBase64()
ByteSource
toBase64 in interface ByteSourcepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||