com.ibm.security.certclient.util
Interface PkSsCertificate
- public interface PkSsCertificate
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getCertificate()
Extract the self-signed Certificate
|
|
getKey()
Extract the private key for the self-signed certificate
|
|
getPublicKey()
Extract the public key
|
|
getSigAlg()
Extract the signature algorithm
|
|
getSubjectKeyIdentifier()
Extract the subject public key identifier
|
|
getSubjectName()
Extract the subject name
|
|
setToKeyStore(java.lang.String alias,java.lang.String password,java.security.KeyStore ks)
Store this self-signed certificate in a keystore
|
Method Detail
getKey
- java.security.PrivateKey getKey( )
Extract the private key for the self-signed certificate
Returns:
the private key of the key pair created for this certificate
getCertificate
- java.security.cert.X509Certificate getCertificate( )
Extract the self-signed Certificate
Returns:
the X509 certificate
getPublicKey
- java.security.PublicKey getPublicKey( )
Extract the public key
Returns:
the X509 public key
getSubjectName
- java.lang.String getSubjectName( )
Extract the subject name
Returns:
the subject Distinguished Name as a String
getSigAlg
- java.lang.String getSigAlg()
Extract the signature algorithm
Returns:
the string naming the certificate signing algorithm
getSubjectKeyIdentifier
- byte[] getSubjectKeyIdentifier( )
Extract the subject public key identifier
Returns:
the byte array containing the generated subject key identifier
This uniquely identifies the private key corresponding to this certificate
without exposing it
setToKeyStore
- void setToKeyStore(java.lang.String alias,
- java.lang.String password,
- java.security.KeyStore ks)
- throws com.ibm.security.certclient.base.PkException
Store this self-signed certificate in a keystore
Parameters:
alias
- label to identify certificate in keystore password
- key protection password ks
- keystore where key is to be stored Throws:
com.ibm.security.certclient.base.PkException