Skip navigation links
oracle.security.xmlsec.wss.encoding
Class NullBinaryEncoder
java.lang.Object
oracle.security.xmlsec.util.Base64
oracle.security.xmlsec.wss.encoding.NullBinaryEncoder
- All Implemented Interfaces:
- BinaryDataEncoder
-
public class NullBinaryEncoder
- extends oracle.security.xmlsec.util.Base64
- implements BinaryDataEncoder
Performs no encoding or decoding. Uses the platform default charset encoding to convert between String and bytes and vice versa.
Nested classes/interfaces inherited from class oracle.security.xmlsec.util.Base64 |
oracle.security.xmlsec.util.Base64.DecodeInputStream, oracle.security.xmlsec.util.Base64.EncodeOutputStream |
Method Summary |
byte[] |
decode(java.lang.String encoded)
Parse the hexadecimal String. |
java.lang.String |
encode(byte[] bytes)
Encode the binary data as a hexadecimal characters. |
java.lang.String |
getEncodingType()
Get the ValueType for this encoder. |
Methods inherited from class oracle.security.xmlsec.util.Base64 |
fromBase64, getUseLineBreaks, setUseLineBreaks, toBase64 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullBinaryEncoder
public NullBinaryEncoder()
encode
public java.lang.String encode(byte[] bytes)
- Encode the binary data as a hexadecimal characters.
-
- Specified by:
encode
in interface BinaryDataEncoder
- Overrides:
encode
in class oracle.security.xmlsec.util.Base64
-
- Parameters:
bytes
- The raw bytes to encode.
- Returns:
- The hexadecimal String representation.
decode
public byte[] decode(java.lang.String encoded)
- Parse the hexadecimal String.
-
- Specified by:
decode
in interface BinaryDataEncoder
- Overrides:
decode
in class oracle.security.xmlsec.util.Base64
-
- Parameters:
encoded
- The hexadecimal String.
- Returns:
- The raw bytes.
getEncodingType
public java.lang.String getEncodingType()
- Get the ValueType for this encoder.
-
- Specified by:
getEncodingType
in interface BinaryDataEncoder
-
- Returns:
- The
URI
representing this encoder.
Skip navigation links
Copyright © 2005, 2011 , Oracle. All rights reserved.