at.gv.egovernment.moa.spss.server.iaik.xmlsign
Class XMLSignatureCreationProfileImpl

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.iaik.xmlsign.XMLSignatureCreationProfileImpl
All Implemented Interfaces:
iaik.server.modules.xmlsign.XMLSignatureCreationProfile

public class XMLSignatureCreationProfileImpl
extends Object
implements iaik.server.modules.xmlsign.XMLSignatureCreationProfile

An object providing auxiliary information for creating an XML signature.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
XMLSignatureCreationProfileImpl(int createProfileCount, Set reservedIDs)
          Create a new XMLSignatureCreationProfileImpl.
 
Method Summary
 List getDataObjectTreatmentList()
           
 String getDsigManifestID()
           
 Set getKeySet()
           
 String getSecurityLayerManifestID()
           
 String getSecurityLayerManifestTypeURI()
           
 String getSignatureAlgorithmName(iaik.server.modules.keys.KeyEntryID selectedKeyID)
           
 String getSignatureID()
           
 iaik.server.modules.xmlsign.XMLSignatureInsertionLocation getSignatureInsertionLocation()
           
 String getSignatureStructureType()
           
 iaik.server.modules.xml.Canonicalization getSignedInfoCanonicalization()
           
 List getSignedProperties()
           
 String getSignedPropertiesID()
           
 boolean isSecurityLayerConform()
           
 void setDataObjectTreatmentList(List dataObjectTreatmentList)
          Sets the list of DataObjectTreatments.
 void setKeySet(Set keySet)
          Set the set of KeyEntryIDs which may be used for signature creation.
 void setSecurityLayerConform(boolean securityLayerConform)
          Sets the security layer conformity.
 void setSecurityLayerManifestTypeURI(String securityLayerManifestTypeURI)
          Set the SecurityLayerManifestTypeURI.
 void setSignatureInsertionLocation(iaik.server.modules.xmlsign.XMLSignatureInsertionLocation signatureInsertionLocation)
          Set the location where the signature is to be inserted into the signature parent.
 void setSignatureStructureType(String signatureStructureType)
          Set the signature structure type.
 void setSignedInfoCanonicalization(iaik.server.modules.xml.Canonicalization signedInfoCanonicalization)
          Sets the canonicalization method to use for the SignedInfo object.
 void setSignedProperties(List signedProperties)
          Set the signed properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSignatureCreationProfileImpl

public XMLSignatureCreationProfileImpl(int createProfileCount,
                                       Set reservedIDs)
Create a new XMLSignatureCreationProfileImpl.
Parameters:
createProfileCount - Provides external information about the number of calls to the signature creation module, using the same request.
reservedIDs - The set of IDs that must not be used while generating new IDs.
Method Detail

getDataObjectTreatmentList

public List getDataObjectTreatmentList()
Specified by:
getDataObjectTreatmentList in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getDataObjectTreatmentList()

setDataObjectTreatmentList

public void setDataObjectTreatmentList(List dataObjectTreatmentList)
Sets the list of DataObjectTreatments.
Parameters:
dataObjectTreatmentList - The DataObjectTreatments to set.

getKeySet

public Set getKeySet()
Specified by:
getKeySet in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getKeySet()

setKeySet

public void setKeySet(Set keySet)
Set the set of KeyEntryIDs which may be used for signature creation.
Parameters:
keySet - The set of KeyEntryIDs to set.

getSecurityLayerManifestTypeURI

public String getSecurityLayerManifestTypeURI()
Specified by:
getSecurityLayerManifestTypeURI in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSecurityLayerManifestTypeURI()

setSecurityLayerManifestTypeURI

public void setSecurityLayerManifestTypeURI(String securityLayerManifestTypeURI)
Set the SecurityLayerManifestTypeURI.
Parameters:
securityLayerManifestTypeURI - The SecurityLayerManifestTypeURI to set.

getSignatureAlgorithmName

public String getSignatureAlgorithmName(iaik.server.modules.keys.KeyEntryID selectedKeyID)
                                 throws iaik.server.modules.keys.AlgorithmUnavailableException
Specified by:
getSignatureAlgorithmName in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignatureAlgorithmName(KeyEntryID)

getSignatureInsertionLocation

public iaik.server.modules.xmlsign.XMLSignatureInsertionLocation getSignatureInsertionLocation()
Specified by:
getSignatureInsertionLocation in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignatureInsertionLocation()

setSignatureInsertionLocation

public void setSignatureInsertionLocation(iaik.server.modules.xmlsign.XMLSignatureInsertionLocation signatureInsertionLocation)
Set the location where the signature is to be inserted into the signature parent.
Parameters:
signatureInsertionLocation - The location to set.

getSignatureStructureType

public String getSignatureStructureType()
Specified by:
getSignatureStructureType in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignatureStructureType()

setSignatureStructureType

public void setSignatureStructureType(String signatureStructureType)
Set the signature structure type.
Parameters:
signatureStructureType - The signature structure type to set.

getSignedInfoCanonicalization

public iaik.server.modules.xml.Canonicalization getSignedInfoCanonicalization()
Specified by:
getSignedInfoCanonicalization in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignedInfoCanonicalization()

setSignedInfoCanonicalization

public void setSignedInfoCanonicalization(iaik.server.modules.xml.Canonicalization signedInfoCanonicalization)
Sets the canonicalization method to use for the SignedInfo object.
Parameters:
signedInfoCanonicalization - The canonicalization method to set.

getSignedProperties

public List getSignedProperties()
Specified by:
getSignedProperties in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignedProperties()

setSignedProperties

public void setSignedProperties(List signedProperties)
Set the signed properties.
Parameters:
signedProperties - The signed properties to set.

isSecurityLayerConform

public boolean isSecurityLayerConform()
Specified by:
isSecurityLayerConform in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.isSecurityLayerConform()

setSecurityLayerConform

public void setSecurityLayerConform(boolean securityLayerConform)
Sets the security layer conformity.
Parameters:
securityLayerConform - true, if the created signature is to be conform to the Security Layer specification.

getSignatureID

public String getSignatureID()
Specified by:
getSignatureID in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignatureID()

getSecurityLayerManifestID

public String getSecurityLayerManifestID()
Specified by:
getSecurityLayerManifestID in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSecurityLayerManifestID()

getDsigManifestID

public String getDsigManifestID()
Specified by:
getDsigManifestID in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getDsigManifestID()

getSignedPropertiesID

public String getSignedPropertiesID()
Specified by:
getSignedPropertiesID in interface iaik.server.modules.xmlsign.XMLSignatureCreationProfile
See Also:
XMLSignatureCreationProfile.getSignedPropertiesID()