SignatureProperty

SignatureProperty (서명 속성)

W3C 권장 사항인 XML-Signature Syntax and Processing에 정의된 XML SignatureProperty 요소의 표현입니다.

출처: Java API Reference

본문

XML 스키마 정의는 다음과 같습니다.

<element name="SignatureProperty" type="ds:SignaturePropertyType"/>
<complexType name="SignaturePropertyType" mixed="true">
  <choice maxOccurs="unbounded">
    <any namespace="##other" processContents="lax"/>
  </choice>
  <attribute name="Target" type="anyURI" use="required"/>
  <attribute name="Id" type="ID" use="optional"/>
</complexType>

이 인터페이스는 XMLStructure를 확장하며, 서명과 관련된 하나의 형식적인(additional) 속성을 나타냅니다.

주요 메서드는 다음과 같습니다.

  • getTarget() – 속성이 적용되는 서명 요소를 식별하는 URI를 반환합니다.
  • getId() – 이 속성의 Id 값을 반환합니다.
  • getContent() – 이 서명 속성의 콘텐츠를 나타내는 XMLStructure 목록을 반환합니다.

SignaturePropertyTarget 속성으로 대상 서명을 가리키며, 해당 서명에 대한 추가 메타데이터를 포함합니다. 여러 SignaturePropertySignatureProperties에 묶여 사용됩니다.

더 알아보기 (Learn more)

Java 공식 API