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

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

public class SsfProfileBasicImpl
extends java.lang.Object
implements ISsfProfile

Use this class to create an SSF profile from a private key with certificate chain.


Constructor Summary
SsfProfileBasicImpl(java.security.PrivateKey privKey, java.security.cert.X509Certificate[] certChain)
          Constructs an SSF profile from a private key with certificate chain
 
Method Summary
 java.security.cert.X509Certificate getCertificate()
          Get the certificate of a signer or recipient.
 java.security.cert.X509Certificate[] getCertificateChain()
          Get the certificate chain of a signer or recipient.
 java.security.PrivateKey getPrivateKey()
          Get the private key of a signer or recipient
 java.lang.String toString()
          Get description of SSF profile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SsfProfileBasicImpl

public SsfProfileBasicImpl(java.security.PrivateKey privKey,
                           java.security.cert.X509Certificate[] certChain)
Constructs an SSF profile from a private key with certificate chain
Parameters:
privKey - java.security.PrivateKey object
certChain - ordered certificate chain (own certificate to root certificate)
Method Detail

getPrivateKey

public java.security.PrivateKey getPrivateKey()
Description copied from interface: ISsfProfile
Get the private key of a signer or recipient
Specified by:
getPrivateKey in interface ISsfProfile
See Also:
ISsfProfile.getPrivateKey()

getCertificate

public java.security.cert.X509Certificate getCertificate()
Description copied from interface: ISsfProfile
Get the certificate of a signer or recipient.
Specified by:
getCertificate in interface ISsfProfile
See Also:
ISsfProfile.getCertificate()

getCertificateChain

public java.security.cert.X509Certificate[] getCertificateChain()
Description copied from interface: ISsfProfile
Get the certificate chain of a signer or recipient. The first certificate is the certificate of the signer or recipient.
Specified by:
getCertificateChain in interface ISsfProfile
See Also:
ISsfProfile.getCertificateChain()

toString

public java.lang.String toString()
Get description of SSF profile
Overrides:
toString in class java.lang.Object
Returns:
string containing the certificate chain