org.wso2.solutions.identity.admin
Class KeystoreUtilAdmin

java.lang.Object
  extended by org.wso2.solutions.identity.admin.KeystoreUtilAdmin

public class KeystoreUtilAdmin
extends java.lang.Object


Constructor Summary
KeystoreUtilAdmin()
           
 
Method Summary
 void deleteRelyingParty(java.lang.String alias)
          Removes the Certificate from default store
 java.security.cert.X509Certificate getCertificateFromUserTrustedRP(java.lang.String alias)
           
 java.lang.String importCert(java.security.cert.X509Certificate cert)
           
 java.lang.String importCertToUserPersonalCertStore(java.security.cert.X509Certificate cert)
          Imports the Certificate to user personal cert store.
 java.lang.String importCertToUserTrustStore(java.security.cert.X509Certificate cert)
          This method imports the Certificate to Trust store if it present already.
 boolean isCertExists(java.security.cert.X509Certificate cert)
           
 void removeCertEntryFromUserTrustedRP(java.lang.String alias)
          Removes the Certificate from User trusted RP store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeystoreUtilAdmin

public KeystoreUtilAdmin()
Method Detail

isCertExists

public boolean isCertExists(java.security.cert.X509Certificate cert)
                     throws IdentityProviderException
Throws:
IdentityProviderException

importCert

public java.lang.String importCert(java.security.cert.X509Certificate cert)
                            throws IdentityProviderException
Throws:
IdentityProviderException

importCertToUserTrustStore

public java.lang.String importCertToUserTrustStore(java.security.cert.X509Certificate cert)
                                            throws IdentityProviderException
This method imports the Certificate to Trust store if it present already.

Parameters:
cert -
Returns:
Throws:
IdentityProviderException

getCertificateFromUserTrustedRP

public java.security.cert.X509Certificate getCertificateFromUserTrustedRP(java.lang.String alias)
                                                                   throws IdentityProviderException
Throws:
IdentityProviderException

deleteRelyingParty

public void deleteRelyingParty(java.lang.String alias)
                        throws IdentityProviderException
Removes the Certificate from default store

Parameters:
alias -
Throws:
IdentityProviderException

removeCertEntryFromUserTrustedRP

public void removeCertEntryFromUserTrustedRP(java.lang.String alias)
                                      throws IdentityProviderException
Removes the Certificate from User trusted RP store

Parameters:
alias -
Throws:
IdentityProviderException

importCertToUserPersonalCertStore

public java.lang.String importCertToUserPersonalCertStore(java.security.cert.X509Certificate cert)
                                                   throws IdentityProviderException
Imports the Certificate to user personal cert store.

Parameters:
cert -
Returns:
Throws:
IdentityProviderException