public class SsfRefXMLInfo extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
contentOnly
Determines if encryption applies to content of reference only
(default is
false ) |
String |
digest
Digest algorithm applied to transformed content of reference
of digital signature (default is
DIGEST_SHA1 ) |
static String |
DIGEST_MD5 |
static String |
DIGEST_SHA1 |
static String |
DIGEST_SHA256 |
static String |
DIGEST_SHA512 |
int |
status
Status of reference
|
static int |
STATUS_DIGEST_VALUE |
static int |
STATUS_INITIAL |
static int |
STATUS_OK |
static int |
STATUS_UNKNOWN_DIGESTALG |
static int |
STATUS_UNKNOWN_TRANSALG |
static int |
STATUS_UNREACHABLE |
String[] |
trans
Transformations applied to content of reference
(default is
null ) |
static String |
TRANS_BASE64_DECODE |
static String |
TRANS_C14N_EXCL |
static String |
TRANS_C14N_EXCL_OMIT_COMMENTS |
static String |
TRANS_C14N_EXCL_WITH_COMMENTS |
static String |
TRANS_C14N_EXCL_WITHCOMMENTS |
static String |
TRANS_C14N_OMIT_COMMENTS |
static String |
TRANS_C14N_WITH_COMMENTS |
static String |
TRANS_ENVELOPED_SIGNATURE |
static String |
TRANS_XPATH |
static String |
TRANS_XPOINTER |
static String |
TRANS_XSLT |
String |
uri
URI of reference
(default is
"" ) |
String |
uriED
URI of encrypted data
(default is
"" ) |
Constructor and Description |
---|
SsfRefXMLInfo()
Creates a default SsfRefXMLInfo object
(use null URI
"" , no transformations
and default digest algorithm DIGEST_SHA1 ) |
SsfRefXMLInfo(String uri)
Creates an SsfRefXMLInfo object with given URI
(use no transformations and default digest algorithm
DIGEST_SHA1 ) |
SsfRefXMLInfo(String uri,
String[] trans)
Creates an SsfRefXMLInfo object with given URI and transformations
(use default digest algorithm
DIGEST_SHA1 ) |
SsfRefXMLInfo(String uri,
String[] trans,
String digest)
Creates an SsfRefXMLInfo object with given URI, transformations and
digest algorithm
|
SsfRefXMLInfo(String uri,
String[] trans,
String digest,
boolean contentOnly)
Creates an SsfRefXMLInfo object with given URI, transformations,
digest algorithm and encryption information
|
SsfRefXMLInfo(String uri,
String[] trans,
String digest,
boolean contentOnly,
String uriED)
Creates an SsfRefXMLInfo object with given URI, transformations,
digest algorithm and encryption information
|
Modifier and Type | Method and Description |
---|---|
com.sap.engine.lib.xml.signature.transform.Transformation[] |
getTransformations()
Get the transformations as objects of the SAP XML toolkit.
|
boolean |
setTransformations(com.sap.engine.lib.xml.signature.transform.Transformation[] transObj)
Overwrite the transformation objects of this reference
|
String |
toString()
Get description of the reference
|
public static final String TRANS_C14N_EXCL_OMIT_COMMENTS
public static final String TRANS_C14N_EXCL_WITH_COMMENTS
public static final String TRANS_C14N_OMIT_COMMENTS
public static final String TRANS_C14N_WITH_COMMENTS
public static final String TRANS_C14N_EXCL
public static final String TRANS_C14N_EXCL_WITHCOMMENTS
public static final String TRANS_XSLT
public static final String TRANS_BASE64_DECODE
public static final String TRANS_XPATH
public static final String TRANS_ENVELOPED_SIGNATURE
public static final String TRANS_XPOINTER
public static final String DIGEST_MD5
public static final String DIGEST_SHA1
public static final String DIGEST_SHA256
public static final String DIGEST_SHA512
public static final int STATUS_INITIAL
public static final int STATUS_OK
public static final int STATUS_UNREACHABLE
public static final int STATUS_DIGEST_VALUE
public static final int STATUS_UNKNOWN_TRANSALG
public static final int STATUS_UNKNOWN_DIGESTALG
public String uri
""
)public String[] trans
null
)public int status
public String digest
DIGEST_SHA1
)public boolean contentOnly
false
)public String uriED
""
)public SsfRefXMLInfo()
""
, no transformations
and default digest algorithm DIGEST_SHA1
)public SsfRefXMLInfo(String uri)
DIGEST_SHA1
)uri
- String containing the URIpublic SsfRefXMLInfo(String uri, String[] trans)
DIGEST_SHA1
)uri
- String containing the URItrans
- String array containing the transformationspublic SsfRefXMLInfo(String uri, String[] trans, String digest)
uri
- String containing the URItrans
- String array containing the transformationsdigest
- String containg the digest algorithmpublic SsfRefXMLInfo(String uri, String[] trans, String digest, boolean contentOnly)
uri
- String containing the URI of the referencetrans
- String array containing the transformationsdigest
- String containg the digest algorithmcontentOnly
- boolean determining if encryption applies to
content of reference onlypublic SsfRefXMLInfo(String uri, String[] trans, String digest, boolean contentOnly, String uriED)
uri
- String containing the URI of the referencetrans
- String array containing the transformationsdigest
- String containg the digest algorithmcontentOnly
- boolean determining if encryption applies to
content of reference onlyuriED
- String containing the URI of the encrypted datapublic com.sap.engine.lib.xml.signature.transform.Transformation[] getTransformations() throws SsfInvalidAlgException
SsfInvalidAlgException
- if transformation URI is unknownpublic boolean setTransformations(com.sap.engine.lib.xml.signature.transform.Transformation[] transObj)
transObj
- array of transformationstrue
if transformations have been setAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] CORE-TOOLS
|
[sap.com]
|
default
|
BC-JAS
|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/security/lib
|
api
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
-
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
default
|
BC-JAS-SEC
|
Copyright 2018 SAP AG Complete Copyright Notice