|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
public interface Transform
「W3C Recommendation for XML-Signature Syntax and Processing 」로 정의되고 있는 XML Transform 요소의 표현. XML schema 정의는, 다음과 같이 정의됩니다.
<element name="Transform" type="ds:TransformType"/>
<complexType name="TransformType" mixed="true">
<choice minOccurs="0" maxOccurs="unbounded">
<any namespace="##other" processContents="lax"/>
<! -- (1,1) elements from (0, unbounded) namespaces -->
<element name="XPath" type="string"/>
</choice>
<attribute name="Algorithm" type="anyURI" use="required"/>
</complexType>
Transform 인스턴스는,XMLSignatureFactory 클래스의 newTransform 메소드를 호출하는 것으로 작성됩니다.
XMLSignatureFactory.newTransform(String, TransformParameterSpec) | 필드의 개요 | |
|---|---|
static String |
BASE64
Base64 변환 알고리즘 URI. |
static String |
ENVELOPED
Enveloped Signature 변환 알고리즘 URI. |
static String |
XPATH
XPath 변환 알고리즘 URI. |
static String |
XPATH2
XPath Filter 2 변환 알고리즘 URI. |
static String |
XSLT
XSLT 변환 알고리즘 URI. |
| 메소드의 개요 | |
|---|---|
AlgorithmParameterSpec |
getParameterSpec ()
이 Transform 에 관련지을 수 있던, 알고리즘 고유의 입력 파라미터를 돌려줍니다. |
Data |
transform (Data data,
XMLCryptoContext context)
지정한 데이터를 기본이 되는 변환 알고리즘을 사용해 변환합니다. |
Data |
transform (Data data,
XMLCryptoContext context,
OutputStream os)
지정한 데이터를 기본이 되는 변환 알고리즘을 사용해 변환합니다. |
| 인터페이스 javax.xml.crypto. XMLStructure 로부터 상속된 메소드 |
|---|
isFeatureSupported |
| 인터페이스 javax.xml.crypto. AlgorithmMethod 로부터 상속된 메소드 |
|---|
getAlgorithm |
| 필드의 상세 |
|---|
static final String BASE64
static final String ENVELOPED
static final String XPATH
static final String XPATH2
static final String XSLT
| 메소드의 상세 |
|---|
AlgorithmParameterSpec getParameterSpec()
Transform 에 관련지을 수 있던, 알고리즘 고유의 입력 파라미터를 돌려줍니다.
반환된 파라미터를 TransformParameterSpec 객체에 형태 캐스트 할 수 있습니다.
AlgorithmMethod 내의 getParameterSpec null
Data transform(Data data,
XMLCryptoContext context)
throws TransformException
data - 변환 대상의 데이터context - 추가의 문맥을 포함하는 XMLCryptoContext.
적용 불가의 경우는,null 도 가능
NullPointerException - data 가 null 의 경우
TransformException - 변환의 실행중에
에러가 발생했을 경우
Data transform(Data data,
XMLCryptoContext context,
OutputStream os)
throws TransformException
OctetStreamData 의 경우 이 메소드는 null 를 돌려주어, 바이트가 지정한 OutputStream 에 기입해집니다. 그렇지 않은 경우 OutputStream 는 무시되어 메소드는 transform(Data, XMLCryptoContext) 가 불려 갔는지와 같이 동작합니다.
data - 변환 대상의 데이터context - 추가의 문맥을 포함하는 XMLCryptoContext.
적용 불가의 경우는,null 도 가능os - 변환된 데이터의
기입에 사용되는 OutputStream
OutputStream 에 기입해졌을 경우는
null
NullPointerException - data 또는 os 가
null 의 경우
TransformException - 변환의 실행중에
에러가 발생했을 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.