Class DiscoSDKUtils
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.common.DiscoSDKUtils
-
- Direct Known Subclasses:
DiscoUtils
public class DiscoSDKUtils extends Object
Provides utility methods to discovery service.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHN_STMTKey forAuthenticationStatement.static ResourceBundlebundleResourceBundleobject for discovery service.static StringCREDENTIALSKey for credentials.static StringCREDENTIALS_OBJKey for credential objects.static DebugdebugDebugobject for discovery service.static StringOFFERINGSKey for offerings.static StringRES_SESSION_STMTKey forResourceAccessStatementwithSessionContext.static StringRES_STMTKey forResourceAccessStatement.static StringSESSION_STMTKey forSessionContextStatement.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDiscoSDKUtils()Constructor iPlanet-PRIVATE-DEFAULT-CONSTRUCTOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.identity.liberty.ws.disco.jaxb11.ObjectFactorygetDisco11Factory()Gets discovery service jaxb11 object factory.static com.sun.identity.liberty.ws.disco.plugins.jaxb.ObjectFactorygetDiscoEntryFactory()Gets Disco Entry object factory.static com.sun.identity.liberty.ws.disco.jaxb.ObjectFactorygetDiscoFactory()Gets discovery service object factory.static MarshallergetDiscoMarshaller()Gets marshaller.static UnmarshallergetDiscoUnmarshaller()Gets unmarshaller.static ListparseOptions(Element child)Parses Options element.static StatusparseStatus(Element elem)Parses Status element.static ElementparseXML(String xmlString)Obtains DOM Element from an xml String.
-
-
-
Field Detail
-
bundle
public static ResourceBundle bundle
ResourceBundleobject for discovery service.
-
debug
public static Debug debug
Debugobject for discovery service.
-
OFFERINGS
public static final String OFFERINGS
Key for offerings.- See Also:
- Constant Field Values
-
CREDENTIALS
public static final String CREDENTIALS
Key for credentials.- See Also:
- Constant Field Values
-
CREDENTIALS_OBJ
public static final String CREDENTIALS_OBJ
Key for credential objects.- See Also:
- Constant Field Values
-
RES_STMT
public static final String RES_STMT
Key forResourceAccessStatement.- See Also:
- Constant Field Values
-
RES_SESSION_STMT
public static final String RES_SESSION_STMT
Key forResourceAccessStatementwithSessionContext.- See Also:
- Constant Field Values
-
SESSION_STMT
public static final String SESSION_STMT
Key forSessionContextStatement.- See Also:
- Constant Field Values
-
AUTHN_STMT
public static final String AUTHN_STMT
Key forAuthenticationStatement.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDiscoFactory
public static com.sun.identity.liberty.ws.disco.jaxb.ObjectFactory getDiscoFactory()
Gets discovery service object factory.- Returns:
- discovery service object factory.
-
getDisco11Factory
public static com.sun.identity.liberty.ws.disco.jaxb11.ObjectFactory getDisco11Factory()
Gets discovery service jaxb11 object factory.- Returns:
- discovery service v1.1 object factory.
-
getDiscoEntryFactory
public static com.sun.identity.liberty.ws.disco.plugins.jaxb.ObjectFactory getDiscoEntryFactory()
Gets Disco Entry object factory.- Returns:
- object factory for
DiscoEntry.
-
getDiscoMarshaller
public static Marshaller getDiscoMarshaller() throws JAXBException
Gets marshaller.- Returns:
- marshaller for discovery service.
- Throws:
JAXBException
-
getDiscoUnmarshaller
public static Unmarshaller getDiscoUnmarshaller() throws JAXBException
Gets unmarshaller.- Returns:
- unmarshaller for discovery service.
- Throws:
JAXBException
-
parseStatus
public static Status parseStatus(Element elem) throws DiscoveryException
Parses Status element.- Parameters:
elem- Status element.- Returns:
- Status object.
- Throws:
DiscoveryException- if error occurs.
-
parseOptions
public static List parseOptions(Element child) throws DiscoveryException
Parses Options element.- Parameters:
child- Options element.- Returns:
- List of Option strings.
- Throws:
DiscoveryException- if error occurs.
-
parseXML
public static Element parseXML(String xmlString) throws DiscoveryException
Obtains DOM Element from an xml String.- Parameters:
xmlString- String format of an element.- Returns:
- DOM Element
- Throws:
DiscoveryException- if error occurs.
-
-