public class SsfProfilePKCS12File extends Object implements ISsfProfile
Constructor and Description |
---|
SsfProfilePKCS12File(InputStream is,
String pwd)
Constructs an SSF profile from a PKCS#12 input stream
|
SsfProfilePKCS12File(String filename,
String pwd)
Constructs an SSF profile from a PKCS#12 file.
|
Modifier and Type | Method and Description |
---|---|
static ISsfProfile[] |
getAllProfiles(InputStream is,
String pwd)
Get all SSF profiles from a PKCS#12 input stream
|
X509Certificate |
getCertificate()
Get the certificate of a signer or recipient.
|
X509Certificate[] |
getCertificateChain()
Get the certificate chain of a signer or recipient.
|
PrivateKey |
getPrivateKey()
Get the private key of a signer or recipient
|
String |
toString()
Get description of SSF profile
|
public SsfProfilePKCS12File(String filename, String pwd) throws FileNotFoundException, KeyStoreException, KeyManagementException
filename
- path of PKCS#12 filepwd
- password used to protect the fileFileNotFoundException
- if PKCS12 file cannot be foundKeyStoreException
- if PKCS12 file cannot be openedKeyManagementException
- if wrong password was supplied or no key foundpublic SsfProfilePKCS12File(InputStream is, String pwd) throws KeyStoreException, KeyManagementException
is
- InputStream containing the PKCS#12 filepwd
- password used to protect the fileKeyStoreException
- if PKCS12 file cannot be openedKeyManagementException
- if wrong password was supplied or no key foundpublic static ISsfProfile[] getAllProfiles(InputStream is, String pwd) throws KeyStoreException, KeyManagementException
is
- InputStream containing the PKCS#12 filepwd
- password used to protect the fileKeyStoreException
- if PKCS12 file cannot be openedKeyManagementException
- if wrong password was suppliedpublic PrivateKey getPrivateKey()
ISsfProfile
getPrivateKey
in interface ISsfProfile
null
ISsfProfile.getPrivateKey()
public X509Certificate getCertificate()
ISsfProfile
getCertificate
in interface ISsfProfile
null
ISsfProfile.getCertificate()
public X509Certificate[] getCertificateChain()
ISsfProfile
getCertificateChain
in interface ISsfProfile
ISsfProfile.getCertificateChain()
Access 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