org.gcube.common.core.security.utils
Class AuthMethodParser

java.lang.Object
  extended by org.gcube.common.core.security.utils.AuthMethodParser
All Implemented Interfaces:
Serializable, org.globus.wsrf.impl.security.descriptor.util.ElementHandler

public class AuthMethodParser
extends Object
implements org.globus.wsrf.impl.security.descriptor.util.ElementHandler

Handles <auth-method> element of the security descriptor

See Also:
Serialized Form

Field Summary
static String AUTH_GSI_SEC_CONV
           
static String AUTH_GSI_SEC_MSG
           
static String AUTH_GSI_TRANSPORT
           
static String AUTH_NONE
           
protected  org.globus.wsrf.impl.security.descriptor.AuthMethodParserCallback callback
           
static QName QNAME
           
 
Constructor Summary
AuthMethodParser(org.globus.wsrf.impl.security.descriptor.AuthMethodParserCallback callback)
           
 
Method Summary
static String getAuthMethodsAsString(List methods)
           
static void main(String[] args)
           
 void parse(Element elem)
           
static Document string2Document(String xmlString)
           
static Element stringToElement(String nodeAsString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QNAME

public static final QName QNAME

callback

protected org.globus.wsrf.impl.security.descriptor.AuthMethodParserCallback callback

AUTH_GSI_SEC_MSG

public static final String AUTH_GSI_SEC_MSG
See Also:
Constant Field Values

AUTH_GSI_SEC_CONV

public static final String AUTH_GSI_SEC_CONV
See Also:
Constant Field Values

AUTH_GSI_TRANSPORT

public static final String AUTH_GSI_TRANSPORT
See Also:
Constant Field Values

AUTH_NONE

public static final String AUTH_NONE
See Also:
Constant Field Values
Constructor Detail

AuthMethodParser

public AuthMethodParser(org.globus.wsrf.impl.security.descriptor.AuthMethodParserCallback callback)
Method Detail

parse

public void parse(Element elem)
           throws org.globus.wsrf.impl.security.descriptor.util.ElementParserException
Specified by:
parse in interface org.globus.wsrf.impl.security.descriptor.util.ElementHandler
Throws:
org.globus.wsrf.impl.security.descriptor.util.ElementParserException

getAuthMethodsAsString

public static String getAuthMethodsAsString(List methods)

stringToElement

public static Element stringToElement(String nodeAsString)
                               throws Exception
Throws:
Exception

string2Document

public static Document string2Document(String xmlString)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.