public class JavaSecurityManagementServiceImpl extends Object implements JavaSecurityManagementService, org.springframework.beans.factory.InitializingBean
JavaSecurityManagementService
interface used by the KSB moduleModifier 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.InitializingBean
Exception
protected void verifyConfiguration()
protected KeyStore loadKeyStore() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
protected PrivateKey loadPrivateKey() throws GeneralSecurityException
GeneralSecurityException
public void removeClientCertificate(String alias) throws KeyStoreException
removeClientCertificate
in interface JavaSecurityManagementService
KeyStoreException
protected void addClientCertificateToModuleKeyStore(String alias, Certificate clientCertificate) throws KeyStoreException
KeyStoreException
public boolean isAliasInKeystore(String alias) throws KeyStoreException
isAliasInKeystore
in interface JavaSecurityManagementService
KeyStoreException
public String getCertificateAlias(Certificate certificate) throws KeyStoreException
getCertificateAlias
in interface JavaSecurityManagementService
KeyStoreException
public KeyStore generateClientKeystore(String alias, String clientPassphrase) throws GeneralSecurityException
generateClientKeystore
in interface JavaSecurityManagementService
GeneralSecurityException
protected Certificate generateCertificate(KeyPair keyPair, String alias) throws GeneralSecurityException
GeneralSecurityException
protected KeyStore generateKeyStore(Certificate cert, PrivateKey privateKey, String alias, String keyStorePassword) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public List<KeyStoreEntryDataContainer> getListOfModuleKeyStoreEntries()
getListOfModuleKeyStoreEntries
in interface JavaSecurityManagementService
public String getModuleSignatureAlgorithm()
getModuleSignatureAlgorithm
in interface JavaSecurityManagementService
public Certificate getCertificate(String alias) throws KeyStoreException
getCertificate
in interface JavaSecurityManagementService
KeyStoreException
KeyStore.getCertificate(java.lang.String)
protected String getModuleKeyStoreType()
protected String getModuleAlgorithm()
public String getModuleKeyStoreLocation()
getModuleKeyStoreLocation
in interface JavaSecurityManagementService
public void setModuleKeyStoreLocation(String moduleKeyStoreLocation)
public String getModuleKeyStoreAlias()
getModuleKeyStoreAlias
in interface JavaSecurityManagementService
public void setModuleKeyStoreAlias(String moduleKeyStoreAlias)
public String getModuleKeyStorePassword()
public void setModuleKeyStorePassword(String moduleKeyStorePassword)
public KeyStore getModuleKeyStore()
public PrivateKey getModulePrivateKey()
getModulePrivateKey
in interface JavaSecurityManagementService
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.