/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Directive.java,v 1.2 2008/06/25 05:47:10 qcheng Exp $
*
*/
/**
* The class <code>Directive</code> represents a discovery service
* <code>DirectiveType</code> element. Current implementation supports the
* following four directive types: <code>AUTHENTICATE_REQUESTER</code>,
* <code>AUTHORIZE_REQUESTER</code>, <code>AUTHENTICATE_SESSION_CONTEXT</code>,
* and <code>ENCRYPT_RESOURCEID</code>.
* <p>
* The following schema fragment specifies the expected content within the
* <code>DirectiveType</code> object.
* <pre>
* <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>
* </pre>
*
* @supported.all.api
*/
public class Directive {
/**
* <code>DirectiveType AuthenticateRequester</code>.
*/
"AuthenticateRequester";
/**
* <code>DirectiveType AuthorizeRequester</code>.
*/
/**
* <code>DirectiveType AuthenticateSessionContext</code>.
*/
"AuthenticateSessionContext";
/**
* <code>DirectiveType EncryptResourceID</code>.
*/
/**
* <code>DirectiveType GenerateBearerToken</code>.
*/
/**
* Constructs a directive instance for a type of directive.
* @param directiveType Type of the directive.
*/
}
/**
* Constructs a directive instance from DOM element.
* @param elem <code>DirectiveType</code> DOM element.
* @exception DiscoveryException if error occurs.
*/
throw new DiscoveryException(
}
throw new DiscoveryException(
}
} else {
+ tag);
}
throw new DiscoveryException(
}
}
if (descIDRefs == null) {
descIDRefs = new ArrayList();
}
while (st.hasMoreTokens()) {
}
}
}
}
/**
* Returns a list of description ID references.
* @return a list of description ID references.
* @see #setDescriptionIDRef(List)
*/
return descIDRefs;
}
/**
* Sets a list of description ID references.
* @param idrefs a list of description ID references to be set.
* @see #getDescriptionIDRef()
*/
descIDRefs = idrefs;
}
/**
* Returns type of directive.
* @return type of directive.
* @see #setDirectiveType(String)
*/
return type;
}
/**
* Sets type of the directive.
* @param directiveType type of the directive to be set.
* @see #getDirectiveType()
*/
}
/**
* Returns the directive object in string format.
* @return the directive object in string format.
*/
} else {
}
if (descIDRefs != null) {
}
}
}
}
}