public class SignaturePolicyIdentifier extends XAdESBaseElement
The signature policy needs to be available in human readable form so that it can be assessed to meet the requirements of the legal and contractual context in which it is being applied. To facilitate the automatic processing of an electronic signature the parts of the signature policy which specify the electronic rules for the creation and validation of the electronic signature also need to be in a computer processable form.
If no signature policy is identified then the signature may be assumed to have been generated/verified without any policy constraints, and hence may be given no specific legal or contractual significance through the context of a signature policy.
The present document specifies two unambiguous ways for identifying the signature policy that a signature follows:
The signature policy identifier is a signed property qualifying the signature.
At most one SignaturePolicyIdentifier element MAY be
present in the signature.
Below follows the Schema definition for this type.
<xsd:element name="SignaturePolicyIdentifier" type="SignaturePolicyIdentifierType"/>
<xsd:complexType name="SignaturePolicyIdentifierType">
<xsd:choice>
<xsd:element name="SignaturePolicyId" type="SignaturePolicyIdType"/>
<xsd:element name="SignaturePolicyImplied"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="SignaturePolicyIdType">
<xsd:sequence>
<xsd:element name="SigPolicyId" type="ObjectIdentifierType"/>
<xsd:element ref="ds:Transforms" minOccurs="0"/>
<xsd:element name="SigPolicyHash" type="DigestAlgAndValueType"/>
<xsd:element name="SigPolicyQualifiers" type="SigPolicyQualifiersListType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SigPolicyQualifiersListType">
<xsd:sequence>
<xsd:element name="SigPolicyQualifier" type="AnyType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
The SignaturePolicyId element will appear when the signature
policy is identified using the first alternative. The
SigPolicyId element contains an identifier that uniquely
identifies a specific version of the signature policy.
The SigPolicyHash element contains the identifier of the
hash algorithm and the hash value of the signature policy.
The SigPolicyQualifier element can contain additional
information qualifying the signature policy identifier. The optional
ds:Transforms element can contain the transformations performed
on the signature policy document before computing its hash. The processing
model for these transformations is described in [3].
Alternatively, the SignaturePolicyImplied element will
appear when the second alternative is used. This empty element indicates
that the data object(s) being signed and other external data imply the
signature policy.
mContext, mElement, mId| Constructor and Description |
|---|
SignaturePolicyIdentifier(Context aContext,
int[] aOID,
java.lang.String aDescription,
java.lang.String aPolicyURI) |
SignaturePolicyIdentifier(Context aContext,
int[] aOID,
java.lang.String aDescription,
java.lang.String aPolicyURI,
java.lang.String userNotice) |
SignaturePolicyIdentifier(Context aContext,
SignaturePolicyId aPolicyId)
Policy identifier constructor for both implicit or explicit signature
policies.
|
SignaturePolicyIdentifier(Context context,
tr.gov.tubitak.uekae.esya.api.signature.attribute.SignaturePolicyIdentifier spi) |
SignaturePolicyIdentifier(org.w3c.dom.Element aElement,
Context aContext)
Construct XADESBaseElement from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalName() |
SignaturePolicyId |
getSignaturePolicyId() |
tr.gov.tubitak.uekae.esya.api.asn.profile.TurkishESigProfile |
getTurkishESigProfile() |
boolean |
isSignaturePolicyImplied() |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic SignaturePolicyIdentifier(Context aContext, int[] aOID, java.lang.String aDescription, java.lang.String aPolicyURI) throws XMLSignatureException
XMLSignatureExceptionpublic SignaturePolicyIdentifier(Context aContext, int[] aOID, java.lang.String aDescription, java.lang.String aPolicyURI, java.lang.String userNotice) throws XMLSignatureException
XMLSignatureExceptionpublic SignaturePolicyIdentifier(Context context, tr.gov.tubitak.uekae.esya.api.signature.attribute.SignaturePolicyIdentifier spi)
public SignaturePolicyIdentifier(Context aContext, SignaturePolicyId aPolicyId)
aContext - where this signature belongsaPolicyId - Either identifier o null for implied signature policy!public SignaturePolicyIdentifier(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic SignaturePolicyId getSignaturePolicyId()
public boolean isSignaturePolicyImplied()
public java.lang.String getLocalName()
getLocalName in class BaseElementpublic tr.gov.tubitak.uekae.esya.api.asn.profile.TurkishESigProfile getTurkishESigProfile()
Copyright © 2025. All rights reserved.