Interface CipherReference
-
public interface CipherReferenceCipherReferenceidentifies a source which, when processed, yields the encrypted octet sequence.The actual value is obtained as follows. The
CipherReference URIcontains an identifier that is dereferenced. Should the Transforms, the data resulting from dereferencing theURIis transformed as specified so as to yield the intended cipher value. For example, if the value is base64 encoded within an XML document; the transforms could specify an XPath expression followed by a base64 decoding so as to extract the octets.The syntax of the
URIand Transforms is similar to that of [XML-DSIG]. However, there is a difference between signature and encryption processing. In [XML-DSIG] both generation and validation processing start with the same source data and perform that transform in the same order. In encryption, the decryptor has only the cipher data and the specified transforms are enumerated for the decryptor, in the order necessary to obtain the octets. Consequently, because it has different semantics Transforms is in the &xenc; namespace.The schema definition is as follows:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransformsgetTransforms()Returns theTransformsthat specifies how to transform theURIto yield the appropriate cipher value.StringgetURI()Returns anURIthat contains an identifier that should be dereferenced.AttrgetURIAsAttr()Gets the URI as an Attribute node.voidsetTransforms(Transforms transforms)Sets theTransformsthat specifies how to transform theURIto yield the appropriate cipher value.
-
-
-
Method Detail
-
getURI
String getURI()
Returns anURIthat contains an identifier that should be dereferenced.- Returns:
- an
URIthat contains an identifier that should be dereferenced.
-
getURIAsAttr
Attr getURIAsAttr()
Gets the URI as an Attribute node. Used to meld the CipherReference with the XMLSignature ResourceResolvers- Returns:
- the URI as an Attribute node
-
getTransforms
Transforms getTransforms()
Returns theTransformsthat specifies how to transform theURIto yield the appropriate cipher value.- Returns:
- the transform that specifies how to transform the reference to yield the intended cipher value.
-
setTransforms
void setTransforms(Transforms transforms)
Sets theTransformsthat specifies how to transform theURIto yield the appropriate cipher value.- Parameters:
transforms- the set ofTransformsthat specifies how to transform the reference to yield the intended cipher value.
-
-