com.sap.security.api.ssf
Interface ISsfPab

All Known Implementing Classes:
SsfPabKeyStore, SsfPabBasicImpl, SsfPabPKCS12File

public interface ISsfPab

Interface representing the personal address book containg a list of root certificates


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
 

Method Detail

addUntrustedCertificate

public boolean addUntrustedCertificate(java.security.cert.X509Certificate cert)
Add untrusted certificate to the personal address book.
Returns:
true if the certificate could be added

getCertificates

public java.security.cert.X509Certificate[] getCertificates()
Get the root certificates contained in the personal address book
Returns:
array of certificates (might be empty)

getCertificateBySubjectDN

public java.security.cert.X509Certificate getCertificateBySubjectDN(java.lang.String subjectdn)
Get the root certificate corresponding to the given SubjectDN
Returns:
matching certificate or null

isTrusted

public boolean isTrusted(java.security.cert.X509Certificate cert)
Checks if a supplied certificate is trusted
Returns:
true if the certificate is trusted