org.apache.shiro.util
Interface ByteSource

All Known Implementing Classes:
SimpleByteSource

public interface ByteSource

A ByteSource wraps a byte array and provides additional encoding operations.

Since:
1.0
Author:
Les Hazlewood

Method Summary
 byte[] getBytes()
          Returns the wrapped byte array.
 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.
 

Method Detail

getBytes

byte[] getBytes()
Returns the wrapped byte array.

Returns:
the wrapped byte array.

toHex

String toHex()
Returns the Hex-formatted String representation of the underlying wrapped byte array.

Returns:
the Hex-formatted String representation of the underlying wrapped byte array.

toBase64

String toBase64()
Returns the Base 64-formatted String representation of the underlying wrapped byte array.

Returns:
the Base 64-formatted String representation of the underlying wrapped byte array.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.