package at.gv.egovernment.moa.id.auth.data;
/**
* This class contains SAML attributes to be appended to the SAML assertion delivered to
* the Online application.
*
* @author Harald Bratko
*/
public class ExtendedSAMLAttributeImpl implements ExtendedSAMLAttribute {
/**
* The value of this SAML attribute. Must be either of type java.lang.String
* or org.w3c.Element
.
*/
private Object value_;
/**
* The name of this SAML attribute.
*/
private String name_;
/**
* The namespace URI of this SAML attribute.
*/
private String namespace_;
/**
* Specifies whether this SAML attribute should be appended to AUTH Block.
*/
private int addToAUTHBlock_;
/**
* Sets this ExtendedSAMLAttribute.
* @param name The name of this SAML Attribute.
* @param value The value of this SAML Attribute. Must be either of type
* java.lang.String
or org.w3c.dom.Element
.
* @param namespace The namespace of this SAML Attribute.
* @param addToAUTHBlock Specifies if this SAML Attribute should be added to the AUTHBlock.
* The following values are allowed:
*
* -
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#ADD_TO_AUTHBLOCK}
*
* -
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#NOT_ADD_TO_AUTHBLOCK}
*
* -
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#ADD_TO_AUTHBLOCK_ONLY}
*
*
*
*/
public ExtendedSAMLAttributeImpl(String name, Object value, String namespace, int addToAUTHBlock) {
name_ = name;
value_ = value;
namespace_ = namespace;
addToAUTHBlock_ = addToAUTHBlock;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#getValue()
*/
public Object getValue() {
return value_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#getName()
*/
public String getName() {
return name_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#getNameSpace()
*/
public String getNameSpace() {
return namespace_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#getAddToAUTHBlock()
*/
public int getAddToAUTHBlock() {
return addToAUTHBlock_;
}
/**
* Specifies if this SAML Attribute should be added to the AUTHBlock.
*
* @param addToAUTHBlock One of the following values:
*
* -
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#ADD_TO_AUTHBLOCK}
*
* -
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#NOT_ADD_TO_AUTHBLOCK}
*
* -
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#ADD_TO_AUTHBLOCK_ONLY}
*
*
* {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute#ADD_TO_AUTHBLOCK}
*/
public void setAddToAUTHBlock(int addToAUTHBlock) {
addToAUTHBlock_ = addToAUTHBlock;
}
/**
* Sets the name of this SAML attribute.
*
* @param name The name of this SAML attribute.
*/
public void setName(String name) {
name_ = name;
}
/**
* Sets the namespace of this SAML attribute.
*
* @param namespace The namespace to set.
*/
public void setNamespace(String namespace) {
namespace_ = namespace;
}
/**
* Sets the value of this SAML attribute.
*
* @param value The value of this SAML Attribute. Must be either of type
* java.lang.String
or org.w3c.dom.Element
.
*/
public void setValue(Object value) {
value_ = value;
}
}