public class SsfProfileKeyStore extends Object implements ISsfProfile
Constructor and Description |
---|
SsfProfileKeyStore(InputStream is,
String type,
String kspwd,
String alias,
String pwd)
Constructs an SSF profile from a KeyStore input stream
|
SsfProfileKeyStore(KeyStore keyStore,
String alias,
String pwd)
Constructs an SSF profile from a KeyStore
|
Modifier and Type | Method and Description |
---|---|
static ISsfProfile[] |
getAllProfiles(InputStream is,
String type,
String kspwd,
String pwd)
Get all SSF profiles from a KeyStore 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 SsfProfileKeyStore(KeyStore keyStore, String alias, String pwd) throws KeyStoreException
keyStore
- java.security.KeyStore objectalias
- alias name of key entry (if null
, use first key entry)pwd
- password of key entryKeyStoreException
- if KeyStore cannot be opened or no key was foundpublic SsfProfileKeyStore(InputStream is, String type, String kspwd, String alias, String pwd) throws KeyStoreException
type
- KeyStore typeis
- InputStream to read from (if null
, create an empty keystore)kspwd
- password of key store (optional, may be null
)alias
- alias name of key entry (if null
, use first key entry)pwd
- password of key entryKeyStoreException
- if KeyStore cannot be opened or no key was foundpublic static ISsfProfile[] getAllProfiles(InputStream is, String type, String kspwd, String pwd) throws KeyStoreException, KeyManagementException
type
- KeyStore typeis
- InputStream to read from (if null
, create an empty keystore)kspwd
- password of key store (optional, may be null
)pwd
- password of key entries (optional, may be null
)KeyStoreException
- if KeyStore cannot be opened or readKeyManagementException
- if key management operations failedpublic 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