package at.gv.egovernment.moa.id.auth.data; /** * A SAML-Attribute to be appended to the final SAML-Assertion * that will be passed to the online application. */ public interface ExtendedSAMLAttribute { /** * Add this attribute only to the SAML-Assertion * passed to the online application, but not to * the AUTH-Block. */ public final static int NOT_ADD_TO_AUTHBLOCK = 0; /** * Add this attribute to both, the AUTH-Block and the * final SAML-Assertion passed to the online application. */ public final static int ADD_TO_AUTHBLOCK = 1; /** * Add this attribute to only the AUTH-Block, but not * to the final SAML-Assertion passed to the online application. */ public final static int ADD_TO_AUTHBLOCK_ONLY = 2; /** * The value of the SAML-Attribute. This must be either a * org.w3c.Element or a java.lang.String * object. Each other type will be ignored.
* If, for example, the type of the actual SAML-Attribute is a * <xsd:boolean> the value must be either the String * "true" or "false". * Or the <xsd:integer> number 273 * has to be the String "273". * * @return The value of the SAML-Attribute. Must not be null. */ public Object getValue(); /** * The name of the SAML-Attribute. * * @return The name of the SAML-Attribute. Must not be null. */ public String getName(); /** * The namespace of the SAML-Attribute. * An application will use the context specific namespace URI for the attribute it returns. * However, if the application cannot explicitely assign a namespace URI, the * {@link at.gv.egovernment.moa.util.Constants#MOA_NS_URI default} MOA namespace URI * should be used. * * @return The namespace of the SAML-Attribute. Must not be null. */ public String getNameSpace(); /** * Specifies if this SAML-Attribute should be added to the AUTH-Block. *
* Depending on the returned value, this SAML-Attribute should be only added to the * final SAML-Assertion passed to the online application (0), to both, the final * assertion and the AUTH-Block (1) or to the AUTH-Block only (2). * * @return */ public int getAddToAUTHBlock(); }