com.sap.security.core.server.ssf
Class SsfPabKeyStore

java.lang.Object
  |
  +--com.sap.security.core.server.ssf.SsfPabKeyStore
All Implemented Interfaces:
ISsfPab

public class SsfPabKeyStore
extends java.lang.Object
implements ISsfPab

Use this class to create an SSF personal address book from a KeyStore.


Constructor Summary
SsfPabKeyStore(java.io.InputStream is, java.lang.String type, java.lang.String kspwd)
          Constructs an SSF personal address book from a KeyStore input stream
SsfPabKeyStore(java.security.KeyStore keyStore)
          Constructs an SSF personal address book from a KeyStore
 
Method Summary
 boolean addUntrustedCertificate(java.security.cert.X509Certificate cert)
          Add untrusted certificate to the personal address book.
 java.security.cert.X509Certificate getCertificateBySubjectDN(java.lang.String subjectdn)
          Get the root certificate corresponding to the given SubjectDN
 java.security.cert.X509Certificate[] getCertificates()
          Get the root certificates contained in the personal address book
 boolean isTrusted(java.security.cert.X509Certificate cert)
          Checks if a supplied certificate is trusted
 java.lang.String toString()
          Get description of SSF personal address book
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SsfPabKeyStore

public SsfPabKeyStore(java.security.KeyStore keyStore)
               throws java.security.KeyStoreException
Constructs an SSF personal address book from a KeyStore
Parameters:
keyStore - java.security.KeyStore object
Throws:
java.security.KeyStoreException - if KeyStore cannot be opened

SsfPabKeyStore

public SsfPabKeyStore(java.io.InputStream is,
                      java.lang.String type,
                      java.lang.String kspwd)
               throws java.security.KeyStoreException
Constructs an SSF personal address book from a KeyStore input stream
Parameters:
is - InputStream to read from (may be null)
type - KeyStore type
kspwd - password of key store (optional, may be null)
Throws:
java.security.KeyStoreException - if KeyStore cannot be opened
Method Detail

addUntrustedCertificate

public boolean addUntrustedCertificate(java.security.cert.X509Certificate cert)
Description copied from interface: ISsfPab
Add untrusted certificate to the personal address book.
Specified by:
addUntrustedCertificate in interface ISsfPab
See Also:
ISsfPab.addUntrustedCertificate(java.security.cert.X509Certificate)

getCertificates

public java.security.cert.X509Certificate[] getCertificates()
Description copied from interface: ISsfPab
Get the root certificates contained in the personal address book
Specified by:
getCertificates in interface ISsfPab
See Also:
ISsfPab.getCertificates()

getCertificateBySubjectDN

public java.security.cert.X509Certificate getCertificateBySubjectDN(java.lang.String subjectdn)
Description copied from interface: ISsfPab
Get the root certificate corresponding to the given SubjectDN
Specified by:
getCertificateBySubjectDN in interface ISsfPab
See Also:
ISsfPab.getCertificateBySubjectDN(java.lang.String)

isTrusted

public boolean isTrusted(java.security.cert.X509Certificate cert)
Description copied from interface: ISsfPab
Checks if a supplied certificate is trusted
Specified by:
isTrusted in interface ISsfPab
See Also:
ISsfPab.isTrusted(java.security.cert.X509Certificate)

toString

public java.lang.String toString()
Get description of SSF personal address book
Overrides:
toString in class java.lang.Object
Returns:
string containing the trusted certificates