|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sap.security.core.server.ssf.SsfDataPKCS7
Class for representing data to be digitally signed, verified, encrypted or decrypted, using PKCS#7 as security format.
| Fields inherited from interface com.sap.security.api.ssf.ISsfData |
ALG_AES128_CBC, ALG_DES_EDE3_CBC, ALG_MD5, ALG_RC2_40_CBC, ALG_RC2_CBC, ALG_SHA, INC_CERT_CHAIN, INC_CERT_CHAIN_ROOT, INC_CERT_NONE, INC_CERT_OWN |
| Constructor Summary | |
SsfDataPKCS7(java.io.InputStream in)
Constructs PKCS#7 object from an InputStream |
|
| 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,
java.lang.String symAlg)
Encrypts the given data. |
byte[] |
getDataPKCS7()
Get PKCS#7 data which results from previous operations |
boolean |
sign(ISsfProfile profile)
Creates a digital siganture of the given data. |
boolean |
sign(ISsfProfile profile,
java.lang.String mdAlg,
int incCerts,
boolean detached)
Creates a digital siganture of the given data. |
java.lang.String |
toString()
Get information about the PKCS#7 data |
boolean |
verify(ISsfPab pab,
SsfSigRcpList sigList)
Verifies a digital signature of the given data. |
boolean |
verify(ISsfPab pab,
SsfSigRcpList sigList,
ISsfData input,
java.security.cert.X509Certificate cert)
Verifies a digital signature of the given data. |
boolean |
writeTo(java.io.OutputStream out)
Writes the changed data to an output stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SsfDataPKCS7(java.io.InputStream in)
throws java.io.IOException
in - InputStream containing the data| Method Detail |
public boolean sign(ISsfProfile profile)
throws SsfInvalidKeyException
ISsfDatasign in interface ISsfDataISsfData.sign(com.sap.security.api.ssf.ISsfProfile)
public boolean sign(ISsfProfile profile,
java.lang.String mdAlg,
int incCerts,
boolean detached)
throws SsfInvalidKeyException,
SsfInvalidAlgException
ISsfDatasign in interface ISsfDataISsfData.sign(com.sap.security.api.ssf.ISsfProfile)
public boolean verify(ISsfPab pab,
SsfSigRcpList sigList)
throws SsfInvalidDataException
ISsfDataverify in interface ISsfDataISsfData.verify(com.sap.security.api.ssf.ISsfPab, com.sap.security.core.server.ssf.SsfSigRcpList)
public boolean verify(ISsfPab pab,
SsfSigRcpList sigList,
ISsfData input,
java.security.cert.X509Certificate cert)
throws SsfInvalidDataException
ISsfDataverify in interface ISsfDataISsfData.verify(com.sap.security.api.ssf.ISsfPab, com.sap.security.core.server.ssf.SsfSigRcpList)
public boolean encrypt(SsfSigRcpList rcpList,
ISsfPab pab)
throws SsfInvalidKeyException
ISsfDataencrypt in interface ISsfDataISsfData.encrypt(com.sap.security.core.server.ssf.SsfSigRcpList, com.sap.security.api.ssf.ISsfPab)
public boolean encrypt(SsfSigRcpList rcpList,
ISsfPab pab,
java.lang.String symAlg)
throws SsfInvalidKeyException,
SsfInvalidAlgException
ISsfDataencrypt in interface ISsfDataISsfData.encrypt(com.sap.security.core.server.ssf.SsfSigRcpList, com.sap.security.api.ssf.ISsfPab)
public boolean decrypt(ISsfProfile profile)
throws SsfInvalidKeyException,
SsfInvalidDataException
ISsfDatadecrypt in interface ISsfDataISsfData.decrypt(com.sap.security.api.ssf.ISsfProfile)
public boolean writeTo(java.io.OutputStream out)
throws java.io.IOException
ISsfDatawriteTo in interface ISsfDataISsfData.writeTo(java.io.OutputStream)public byte[] getDataPKCS7()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||