com.sap.security.core.server.ssf
Class SsfPabBasicImpl
java.lang.Object
|
+--com.sap.security.core.server.ssf.SsfPabBasicImpl
- All Implemented Interfaces:
- ISsfPab
- public class SsfPabBasicImpl
- extends java.lang.Object
- implements ISsfPab
Use this class to create an SSF personal address book from an array of X509 certificates
|
Constructor Summary |
SsfPabBasicImpl(java.security.cert.X509Certificate[] trustedCerts)
Constructs an SSF personal address book from an array of X509 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 |
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 |
SsfPabBasicImpl
public SsfPabBasicImpl(java.security.cert.X509Certificate[] trustedCerts)
- Constructs an SSF personal address book from an array of X509 certificates
- Parameters:
trustedCerts - array of X509 certificates
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