package at.gv.egovernment.moa.id.auth.data;
import java.security.PublicKey;
import java.util.List;
import org.w3c.dom.Element;
/**
* Parameters for validating an infobox.
*
* This interface is used by MOA-ID to provide parameters to an
* {link at.gv.egovernment.moa.id.auth.validator.InfoboxValidator
* InfoboxValidator}.
*
* @author Harald Bratko
*/
public class InfoboxValidatorParamsImpl implements InfoboxValidatorParams {
/**
* A list of {@link at.gv.egovernment.moa.id.auth.data.InfoboxToken InfoboxToken} objects.
* The first token in this list is the one to be validated. Each further token
* maybe needed to validate this first token.
*/
private List infoboxTokenList_;
/**
* The ID of the trust profile used for validating certificates.
*/
private String trustProfileID_;
/**
* The locations of schemas that maybe needed for validating infobox tokens.
*/
private List schemaLocations_;
/**
* The URL of the BKU.
*/
private String bkuURL_;
/**
* Specifies whether the current online application is a business or a public application.
*/
private boolean businessApplication_;
/**
* The target parameter.
*/
private String target_;
/**
* The family name from the identity link.
*/
private String familyName_;
/**
* The given name from the identity link.
*/
private String givenName_;
/**
* The date of birth from the identity link.
*/
private String dateOfBirth_;
/**
* The date of identification value.
*/
private String identificationValue_;
/**
* The identification type.
*/
private String identificationType_;
/**
* The public keys from the identity link.
*/
private PublicKey[] publicKeys_;
/**
* The identity link.
*/
private Element identityLink_;
/**
* Application specific parameters.
*/
private Element applicationSpecificParams_;
/**
* Empty constructor.
*/
public InfoboxValidatorParamsImpl() {
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getInfoboxTokenList()
*/
public List getInfoboxTokenList() {
return infoboxTokenList_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getTrustProfileID()
*/
public String getTrustProfileID() {
return trustProfileID_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getSchemaLocations()
*/
public List getSchemaLocations() {
return schemaLocations_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getBkuURL()
*/
public String getBkuURL() {
return bkuURL_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getTarget()
*/
public String getTarget() {
return target_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getBusinessApplication()
*/
public boolean getBusinessApplication() {
return businessApplication_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getFamilyName()
*/
public String getFamilyName() {
return familyName_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getGivenName()
*/
public String getGivenName() {
return givenName_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getDateOfBirth()
*/
public String getDateOfBirth() {
return dateOfBirth_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getIdentificationValue()
*/
public String getIdentificationValue() {
return identificationValue_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getIdentificationType()
*/
public String getIdentificationType() {
return identificationType_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getPublicKeys()
*/
public PublicKey[] getPublicKeys() {
return publicKeys_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getIdentityLink()
*/
public Element getIdentityLink() {
return identityLink_;
}
/**
* @see at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams#getApplicationSpecificParams()
*/
public Element getApplicationSpecificParams() {
return applicationSpecificParams_;
}
/**
* Sets the application specific parameters.
*
* @param applicationSpecificParams The application specific parameters to set.
*/
public void setApplicationSpecificParams(Element applicationSpecificParams) {
applicationSpecificParams_ = applicationSpecificParams;
}
/**
* Sets the bku URL.
*
* @param bkuURL The bku URL to set.
*/
public void setBkuURL(String bkuURL) {
bkuURL_ = bkuURL;
}
/**
* Sets the business application parameter.
*
* @param businessApplication The business application parameter to set.
* (True
if the application is a business
* application, otherwies false
).
*/
public void setBusinessApplication(boolean businessApplication) {
businessApplication_ = businessApplication;
}
/**
* Sets the date of birth.
*
* @param dateOfBirth The date of birth.
*/
public void setDateOfBirth(String dateOfBirth) {
dateOfBirth_ = dateOfBirth;
}
/**
* Sets the family name.
*
* @param familyName The family name.
*/
public void setFamilyName(String familyName) {
familyName_ = familyName;
}
/**
* Sets the given name.
*
* @param givenName The given name.
*/
public void setGivenName(String givenName) {
givenName_ = givenName;
}
/**
* Sets the identification type.
*
* @param identificationType The identification type.
*/
public void setIdentificationType(String identificationType) {
identificationType_ = identificationType;
}
/**
* Sets the identification value.
*
* @param identificationValue The identification value.
*/
public void setIdentificationValue(String identificationValue) {
identificationValue_ = identificationValue;
}
/**
* Sets the identity link.
*
* @param identityLink The identity link.
*/
public void setIdentityLink(Element identityLink) {
identityLink_ = identityLink;
}
/**
* Sets the infobox token to be validated.
*
* @param infoboxTokenList A list {@link at.gv.egovernment.moa.id.auth.data.InfoboxToken InfoboxToken}
* objects.
*/
public void setInfoboxTokenList(List infoboxTokenList) {
infoboxTokenList_ = infoboxTokenList;
}
/**
* Sets the public Keys.
*
* @param publicKeys The public keys.
*/
public void setPublicKeys(PublicKey[] publicKeys) {
publicKeys_ = publicKeys;
}
/**
* Sets the schema locations.
*
* @param schemaLocations The schema locations. A list of
* {@link Schema} objects.
*/
public void setSchemaLocations(List schemaLocations) {
schemaLocations_ = schemaLocations;
}
/**
* Sets the target.
*
* @param target The target.
*/
public void setTarget(String target) {
target_ = target;
}
/**
* Sets the ID of the trust profile used for validating certificates.
*
* @param trustProfileID the ID of the trust profile used for validating certificates.
*/
public void setTrustProfileID(String trustProfileID) {
trustProfileID_ = trustProfileID;
}
}