Constructor and Description |
---|
SsfPabKeyStore(InputStream is,
String type,
String kspwd)
Constructs an SSF personal address book from a KeyStore input stream
|
SsfPabKeyStore(KeyStore keyStore)
Constructs an SSF personal address book from a KeyStore
|
Modifier and Type | Method and Description |
---|---|
boolean |
addUntrustedCertificate(X509Certificate cert)
Add untrusted certificate to the personal address book.
|
X509Certificate |
getCertificateBySubjectDN(String subjectdn)
Get the root certificate corresponding to the given SubjectDN
|
X509Certificate[] |
getCertificates()
Get the root certificates contained in the personal address book
|
boolean |
isTrusted(X509Certificate cert)
Checks if a supplied certificate is trusted
|
String |
toString()
Get description of SSF personal address book
|
public SsfPabKeyStore(KeyStore keyStore) throws KeyStoreException
keyStore
- java.security.KeyStore objectKeyStoreException
- if KeyStore cannot be openedpublic SsfPabKeyStore(InputStream is, String type, String kspwd) throws KeyStoreException
is
- InputStream to read from (may be null
)type
- KeyStore typekspwd
- password of key store (optional, may be null
)KeyStoreException
- if KeyStore cannot be openedpublic boolean addUntrustedCertificate(X509Certificate cert)
ISsfPab
addUntrustedCertificate
in interface ISsfPab
cert
- the certificate to be addedISsfPab.addUntrustedCertificate(java.security.cert.X509Certificate)
public X509Certificate[] getCertificates()
ISsfPab
getCertificates
in interface ISsfPab
ISsfPab.getCertificates()
public X509Certificate getCertificateBySubjectDN(String subjectdn)
ISsfPab
getCertificateBySubjectDN
in interface ISsfPab
subjectdn
- subject distinguished namenull
ISsfPab.getCertificateBySubjectDN(java.lang.String)
public boolean isTrusted(X509Certificate cert)
ISsfPab
isTrusted
in interface ISsfPab
cert
- the certificate to be checkedISsfPab.isTrusted(java.security.cert.X509Certificate)
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