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

AuthenticatorImpl

public class AuthenticatorImpl extends com.sun.xml.ws.security.trust.impl.bindings.AuthenticatorType implements com.sun.xml.ws.security.trust.elements.Authenticator
Provides verification (authentication) of a computed hash.
author
Manveen Kaur

Fields Summary
private static final Logger
log
Constructors Summary
public AuthenticatorImpl()


      
        // empty constructor
    
public AuthenticatorImpl(com.sun.xml.ws.security.trust.impl.bindings.AuthenticatorType aType)

        //ToDo
    
public AuthenticatorImpl(byte[] hash)

        setRawCombinedHash(hash);
    
Methods Summary
public byte[]getRawCombinedHash()

        return getCombinedHash();
    
public java.lang.StringgetTextCombinedHash()

        return Base64.encode(getRawCombinedHash());
    
public final voidsetRawCombinedHash(byte[] rawCombinedHash)

        setCombinedHash(rawCombinedHash);
    
public voidsetTextCombinedHash(java.lang.String encodedCombinedHash)

        try {
            setRawCombinedHash(Base64.decode(encodedCombinedHash));
        } catch (Base64DecodingException de) {
            log.log(Level.SEVERE,
                    LogStringsMessages.WST_0020_ERROR_DECODING(encodedCombinedHash), de);
            throw new RuntimeException(LogStringsMessages.WST_0020_ERROR_DECODING(encodedCombinedHash) , de);
        }