|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISsfData
Interface for representing data to be digitally signed, verified, encrypted or decrypted
| Field Summary | |
|---|---|
static String |
ALG_AES128_CBC
Name of symmetric encryption algorithm AES (128 bit) in CBC mode. |
static String |
ALG_AES192_CBC
Name of symmetric encryption algorithm AES (192 bit) in CBC mode. |
static String |
ALG_AES256_CBC
Name of symmetric encryption algorithm AES (256 bit) in CBC mode. |
static String |
ALG_DES_EDE3_CBC
Name of symmetric encryption algorithm triple DES in CBC mode. |
static String |
ALG_MD5
Name of message digest algorithm MD5 (not recommended). |
static String |
ALG_RC2_40_CBC
Name of symmetric encryption algorithm RC2 (40 bit) in CBC mode. |
static String |
ALG_RC2_CBC
Name of symmetric encryption algorithm RC2 (128 bit) in CBC mode. |
static String |
ALG_SHA
Name of message digest algorithm SHA-1. |
static String |
ALG_SHA256
Name of message digest algorithm SHA-256. |
static String |
ALG_SHA512
Name of message digest algorithm SHA-512. |
static int |
INC_CERT_CHAIN
Include certificate chain without root when creating a digital signature (default). |
static int |
INC_CERT_CHAIN_ROOT
Include certificate chain with root when creating a digital signature. |
static int |
INC_CERT_NONE
Do not include any certificates when creating a digital signature. |
static int |
INC_CERT_OWN
Include own certificate when creating a digital signature. |
| Method Summary | |
|---|---|
boolean |
decrypt(ISsfProfile profile)
Decrypts the given data. |
boolean |
encrypt(SsfSigRcpList rcpList,
ISsfPab pab)
Encrypts the given data. |
boolean |
encrypt(SsfSigRcpList rcpList,
ISsfPab pab,
String symAlg)
Encrypts the given data. |
boolean |
sign(ISsfProfile profile)
Creates a digital siganture of the given data. |
boolean |
sign(ISsfProfile profile,
String mdAlg,
int incCerts,
boolean detached)
Creates a digital siganture of the given data. |
boolean |
verify(ISsfPab pab,
SsfSigRcpList sigList)
Verifies a digital signature of the given data. |
boolean |
verify(ISsfPab pab,
SsfSigRcpList sigList,
ISsfData input,
X509Certificate cert)
Verifies a digital signature of the given data. |
boolean |
writeTo(OutputStream out)
Writes the changed data to an output stream |
| Field Detail |
|---|
static final String ALG_SHA
static final String ALG_SHA256
static final String ALG_SHA512
static final String ALG_MD5
static final String ALG_AES128_CBC
static final String ALG_AES192_CBC
static final String ALG_AES256_CBC
static final String ALG_DES_EDE3_CBC
static final String ALG_RC2_40_CBC
static final String ALG_RC2_CBC
static final int INC_CERT_NONE
static final int INC_CERT_OWN
static final int INC_CERT_CHAIN
static final int INC_CERT_CHAIN_ROOT
| Method Detail |
|---|
boolean sign(ISsfProfile profile)
throws SsfInvalidKeyException
profile - containing the secret key of the signer
sign(profile, ALG_SHA, INC_CERT_CHAIN, false)
SsfInvalidKeyException - if invalid key is used
boolean sign(ISsfProfile profile,
String mdAlg,
int incCerts,
boolean detached)
throws SsfInvalidKeyException,
SsfInvalidAlgException
profile - containing the secret key of the signermdAlg - message digest algorithm used to hash the dataincCerts - determine if certificates should be includeddetached - if true do not include data into signature
true if signature could be created
SsfInvalidKeyException - if invalid key is used
SsfInvalidAlgException - if invalid algorithm is used
boolean verify(ISsfPab pab,
SsfSigRcpList sigList)
throws SsfInvalidDataException
pab - personal address book containing trusted certificates (if
null, all certificates are considered as trusted, i.e.
the signer certificates must be validated by the caller)sigList - list of signer information
verify(pab, null, signer)
SsfInvalidDataException - if given data is not digitally signed
boolean verify(ISsfPab pab,
SsfSigRcpList sigList,
ISsfData input,
X509Certificate cert)
throws SsfInvalidDataException
pab - personal address book containing trusted certificates (if
null, all certificates are considered as trusted, i.e.
the signer certificates must be validated by the caller)sigList - list of signer informationinput - unsigned data (provide only in case of detached signature,
in case of attached signature pass null)cert - certificate to be used for verification (if null,
use certificate included in signed data)
true if (at least one) signature could be verified
SsfInvalidDataException - if given data is not digitally signed
boolean encrypt(SsfSigRcpList rcpList,
ISsfPab pab)
throws SsfInvalidKeyException
rcpList - list of recipients of encrypted datapab - personal address book containing trusted certificates
encrypt(rcp, pab, ALG_AES128_CBC)
SsfInvalidKeyException - if invalid key is used
boolean encrypt(SsfSigRcpList rcpList,
ISsfPab pab,
String symAlg)
throws SsfInvalidKeyException,
SsfInvalidAlgException
rcpList - list of recipients of encrypted datapab - personal address book containing the certificate of the recipient
(if null, all certificates are considered as trusted)symAlg - name of symmetric encryption algorithm
true if data could be encrypted for all recipients
SsfInvalidKeyException - if invalid key is used
SsfInvalidAlgException - if invalid algorithm is used
boolean decrypt(ISsfProfile profile)
throws SsfInvalidKeyException,
SsfInvalidDataException
profile - containing the secret key of the recipient
true if encrypted data could be decrypted
SsfInvalidKeyException - if invalid key is used
SsfInvalidDataException - if given data is not encrypted
boolean writeTo(OutputStream out)
throws IOException
out - output stream
true if data could be written
IOException - if an I/O error occurs| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGINEAPI
|
[sap.com] security.class
|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/security/lib
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||