Oracle Security Developer Tools Web Services Security Java API Reference
10g Release 2 (10.1.2.0.2)

B15570-01


oracle.security.xmlsec.wss.encoding
Interface BinaryDataEncoder

All Known Implementing Classes:
Base64BinaryEncoder, HexBinaryEncoder, NullBinaryEncoder

public interface BinaryDataEncoder

Classes implementing this interface encode binary data.


Method Summary
 byte[] decode(java.lang.String encoded)
          Parse the encoded binary data.
 java.lang.String encode(byte[] bytes)
          Encode the raw bytes.
 java.lang.String getEncodingType()
          Get the ValueType for this encoder.

 

Method Detail

encode

public java.lang.String encode(byte[] bytes)
Encode the raw bytes.
Parameters:
bytes - The bytes to encode.
Returns:
A String representation of the binary data.

decode

public byte[] decode(java.lang.String encoded)
Parse the encoded binary data.
Parameters:
encoded - The binary data String.
Returns:
The raw bytes.

getEncodingType

public java.lang.String getEncodingType()
Get the ValueType for this encoder.
Returns:
The URI representing this encoder.

Oracle Security Developer Tools Web Services Security Java API Reference
10g Release 2 (10.1.2.0.2)

B15570-01


Copyright © 2005 , Oracle. All rights reserved.