FileDocCategorySizeDatePackage
BinaryExchangeImpl.javaAPI DocExample4157Tue May 29 16:57:00 BST 2007com.sun.xml.ws.security.trust.impl.elements

BinaryExchangeImpl

public class BinaryExchangeImpl extends com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType implements com.sun.xml.ws.security.trust.elements.BinaryExchange
author
Manveen Kaur (manveen.kaur@sun.com).

Fields Summary
private static final Logger
log
Constructors Summary
public BinaryExchangeImpl(String encodingType, String valueType, byte[] rawText)

    
           
        setEncodingType(encodingType);
        setValueType(valueType);
        setRawValue(rawText);
    
public BinaryExchangeImpl(com.sun.xml.ws.security.trust.impl.bindings.BinaryExchangeType bcType)

        setEncodingType(bcType.getEncodingType());
        setValueType(bcType.getValueType());
        setValue(bcType.getValue());
    
Methods Summary
public byte[]getRawValue()

        try {
            return Base64.decode(getTextValue());
        } catch (Base64DecodingException de) {
            log.log(Level.SEVERE,
                    LogStringsMessages.WST_0020_ERROR_DECODING(getTextValue()), de);
            throw new RuntimeException(LogStringsMessages.WST_0020_ERROR_DECODING(getTextValue()), de);
        }
    
public java.lang.StringgetTextValue()

        return super.getValue();
    
public final voidsetRawValue(byte[] rawText)

        super.setValue(Base64.encode(rawText));
    
public voidsetTextValue(java.lang.String encodedText)

        super.setValue(encodedText);