com.sun.identity.liberty.ws.disco
Class Directive
java.lang.Object
|
+--com.sun.identity.liberty.ws.disco.Directive
- public class Directive
- extends java.lang.Object
The class Directive
represents a discovery service
DirectiveType
element. Current implementation supports the
following four directive types: AUTHENTICATE_REQUESTER
,
AUTHORIZE_REQUESTER
, AUTHENTICATE_SESSION_CONTEXT
,
and ENCRYPT_RESOURCEID
.
The following schema fragment specifies the expected content within the
DirectiveType
object.
<complexType name="DirectiveType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="descriptionIDRefs" type="{http://www.w3.org/2001/XMLSchema}IDREFS" />
</restriction>
</complexContent>
</complexType>
Constructor Summary |
Directive(org.w3c.dom.Element elem)
Constructs a directive instance from DOM element. |
Directive(java.lang.String directiveType)
Constructs a directive instance for a type of directive. |
Method Summary |
java.util.List |
getDescriptionIDRef()
Returns a list of description ID references. |
java.lang.String |
getDirectiveType()
Returns type of directive. |
void |
setDescriptionIDRef(java.util.List idrefs)
Sets a list of description ID references. |
void |
setDirectiveType(java.lang.String directiveType)
Sets type of the directive. |
java.lang.String |
toString()
Returns the directive object in string format. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AUTHENTICATE_REQUESTER
public static final java.lang.String AUTHENTICATE_REQUESTER
DirectiveType AuthenticateRequester
.
AUTHORIZE_REQUESTER
public static final java.lang.String AUTHORIZE_REQUESTER
DirectiveType AuthorizeRequester
.
AUTHENTICATE_SESSION_CONTEXT
public static final java.lang.String AUTHENTICATE_SESSION_CONTEXT
DirectiveType AuthenticateSessionContext
.
ENCRYPT_RESOURCEID
public static final java.lang.String ENCRYPT_RESOURCEID
DirectiveType EncryptResourceID
.
Directive
public Directive(java.lang.String directiveType)
- Constructs a directive instance for a type of directive.
- Parameters:
directiveType
- Type of the directive.
Directive
public Directive(org.w3c.dom.Element elem)
throws DiscoveryException
- Constructs a directive instance from DOM element.
- Parameters:
elem
- DirectiveType
DOM element.- Throws:
DiscoveryException
- if error occurs.
getDescriptionIDRef
public java.util.List getDescriptionIDRef()
- Returns a list of description ID references.
- Returns:
- a list of description ID references.
setDescriptionIDRef
public void setDescriptionIDRef(java.util.List idrefs)
- Sets a list of description ID references.
- Parameters:
idrefs
- a list of description ID references to be set.
getDirectiveType
public java.lang.String getDirectiveType()
- Returns type of directive.
- Returns:
- type of directive.
setDirectiveType
public void setDirectiveType(java.lang.String directiveType)
- Sets type of the directive.
- Parameters:
directiveType
- type of the directive to be set.
toString
public java.lang.String toString()
- Returns the directive object in string format.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the directive object in string format.