public class Directive extends Object
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>
Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATE_REQUESTER
DirectiveType AuthenticateRequester . |
static String |
AUTHENTICATE_SESSION_CONTEXT
DirectiveType AuthenticateSessionContext . |
static String |
AUTHORIZE_REQUESTER
DirectiveType AuthorizeRequester . |
static String |
ENCRYPT_RESOURCEID
DirectiveType EncryptResourceID . |
static String |
GENERATE_BEARER_TOKEN
DirectiveType GenerateBearerToken . |
Constructor and Description |
---|
Directive(Element elem)
Constructs a directive instance from DOM element.
|
Directive(String directiveType)
Constructs a directive instance for a type of directive.
|
Modifier and Type | Method and Description |
---|---|
List |
getDescriptionIDRef()
Returns a list of description ID references.
|
String |
getDirectiveType()
Returns type of directive.
|
void |
setDescriptionIDRef(List idrefs)
Sets a list of description ID references.
|
void |
setDirectiveType(String directiveType)
Sets type of the directive.
|
String |
toString()
Returns the directive object in string format.
|
public static final String AUTHENTICATE_REQUESTER
DirectiveType AuthenticateRequester
.public static final String AUTHORIZE_REQUESTER
DirectiveType AuthorizeRequester
.public static final String AUTHENTICATE_SESSION_CONTEXT
DirectiveType AuthenticateSessionContext
.public static final String ENCRYPT_RESOURCEID
DirectiveType EncryptResourceID
.public static final String GENERATE_BEARER_TOKEN
DirectiveType GenerateBearerToken
.public Directive(String directiveType)
directiveType
- Type of the directive.public Directive(Element elem) throws DiscoveryException
elem
- DirectiveType
DOM element.DiscoveryException
- if error occurs.public List getDescriptionIDRef()
setDescriptionIDRef(List)
public void setDescriptionIDRef(List idrefs)
idrefs
- a list of description ID references to be set.getDescriptionIDRef()
public String getDirectiveType()
setDirectiveType(String)
public void setDirectiveType(String directiveType)
directiveType
- type of the directive to be set.getDirectiveType()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.