public class JavaSecurityManagementServiceImpl extends Object implements JavaSecurityManagementService, org.springframework.beans.factory.InitializingBean
JavaSecurityManagementService interface used by the KSB module| Modifier and Type | Field and Description |
|---|---|
protected String |
CLIENT_KEY_GENERATOR_ALGORITHM |
protected int |
CLIENT_KEY_PAIR_KEY_SIZE |
protected String |
CLIENT_SECURE_RANDOM_ALGORITHM |
| Constructor and Description |
|---|
JavaSecurityManagementServiceImpl() |
protected final String CLIENT_KEY_GENERATOR_ALGORITHM
protected final String CLIENT_SECURE_RANDOM_ALGORITHM
protected final int CLIENT_KEY_PAIR_KEY_SIZE
public JavaSecurityManagementServiceImpl()
public void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void verifyConfiguration()
protected KeyStore loadKeyStore() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected PrivateKey loadPrivateKey() throws GeneralSecurityException
GeneralSecurityExceptionpublic void removeClientCertificate(String alias) throws KeyStoreException
removeClientCertificate in interface JavaSecurityManagementServiceKeyStoreExceptionprotected void addClientCertificateToModuleKeyStore(String alias, Certificate clientCertificate) throws KeyStoreException
KeyStoreExceptionpublic boolean isAliasInKeystore(String alias) throws KeyStoreException
isAliasInKeystore in interface JavaSecurityManagementServiceKeyStoreExceptionpublic String getCertificateAlias(Certificate certificate) throws KeyStoreException
getCertificateAlias in interface JavaSecurityManagementServiceKeyStoreExceptionpublic KeyStore generateClientKeystore(String alias, String clientPassphrase) throws GeneralSecurityException
generateClientKeystore in interface JavaSecurityManagementServiceGeneralSecurityExceptionprotected Certificate generateCertificate(KeyPair keyPair, String alias) throws GeneralSecurityException
GeneralSecurityExceptionprotected KeyStore generateKeyStore(Certificate cert, PrivateKey privateKey, String alias, String keyStorePassword) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic List<KeyStoreEntryDataContainer> getListOfModuleKeyStoreEntries()
getListOfModuleKeyStoreEntries in interface JavaSecurityManagementServicepublic String getModuleSignatureAlgorithm()
getModuleSignatureAlgorithm in interface JavaSecurityManagementServicepublic Certificate getCertificate(String alias) throws KeyStoreException
getCertificate in interface JavaSecurityManagementServiceKeyStoreExceptionKeyStore.getCertificate(java.lang.String)protected String getModuleKeyStoreType()
protected String getModuleAlgorithm()
public String getModuleKeyStoreLocation()
getModuleKeyStoreLocation in interface JavaSecurityManagementServicepublic void setModuleKeyStoreLocation(String moduleKeyStoreLocation)
public String getModuleKeyStoreAlias()
getModuleKeyStoreAlias in interface JavaSecurityManagementServicepublic void setModuleKeyStoreAlias(String moduleKeyStoreAlias)
public String getModuleKeyStorePassword()
public void setModuleKeyStorePassword(String moduleKeyStorePassword)
public KeyStore getModuleKeyStore()
public PrivateKey getModulePrivateKey()
getModulePrivateKey in interface JavaSecurityManagementServiceCopyright © 2005–2016 The Kuali Foundation. All rights reserved.