public interface SignerRoleV2 extends XMLStructure
SignerRoleV2
element as defined in ETSI TS
ETSI EN 319 132-1.
<xsd:element name="SignerRoleV2" type="SignerRoleV2Type"/> <xsd:complexType name="SignerRoleV2Type"> <xsd:sequence> <xsd:element ref="ClaimedRoles" minOccurs="0"/> <xsd:element ref="CertifiedRolesV2" minOccurs="0"/> <xsd:element ref="SignedAssertions" minOccurs="0"/> </xsd:sequence> </xsd:complexType> <xsd:element name="ClaimedRoles" type="ClaimedRolesListType"/> <xsd:element name="CertifiedRolesV2" type="CertifiedRolesListTypeV2"/> <xsd:element name="SignedAssertions" type="SignedAssertionsListType"/> <xsd:complexType name="CertifiedRolesListTypeV2"> <xsd:sequence> <xsd:element name="CertifiedRole" type="CertifiedRoleTypeV2" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="CertifiedRoleTypeV2"> <xsd:choice> <xsd:element ref="X509AttributeCertificate"/> <xsd:element ref="OtherAttributeCertificate"/> </xsd:choice> </xsd:complexType> <xsd:element name="X509AttributeCertificate" type="EncapsulatedPKIDataType"/> <xsd:element name="OtherAttributeCertificate" type="AnyType"/> <xsd:complexType name="SignedAssertionsListType"> <xsd:sequence> <xsd:element ref="SignedAssertion" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:element name="SignedAssertion" type="AnyType"/>
SignerRoleV2
property may be created by invoking the
QualifyingPropertiesFactory.newSignerRoleV2(List, List, List)
method of the
QualifyingPropertiesFactory
class; for example:
QualifyingPropertiesFactory qfac = QualifyingPropertiesFactory.getInstance("DOM"); // Create a claimed role DOMStructure ts = new DOMStructure(doc.createTextNode("chief executive officer")); ClaimedRole clr = qfac.newClaimedRole(Collections.singletonList(ts)); // Create a certified role CertifiedRoleV2 cfr = qfac.newCertifiedRoleV2(attrCert.getEncoded()); SignerRoleV2 sr = qfac.newSignerRoleV2(Collections.singletonList(clr), Collections.singletonList(cfr), Collections.EMPTY_LIST);
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_NAME
The local name of the corresponding
XAdES property. |
Modifier and Type | Method and Description |
---|---|
List |
getCertifiedRoles()
Returns the list of certified roles.
|
List |
getClaimedRoles()
Returns the list of claimed roles.
|
List |
getSignedAssertions()
A list of signed assertions.
|
isFeatureSupported
static final String LOCAL_NAME
XAdES
property.List getClaimedRoles()
ClaimedRole
sList getCertifiedRoles()
CertifiedRoleV2
sList getSignedAssertions()
SignedAssertion
s.© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC