Package com.netscape.cms.servlet.csadmin
Class ConfigurationUtils
- java.lang.Object
-
- com.netscape.cms.servlet.csadmin.ConfigurationUtils
-
public class ConfigurationUtils extends java.lang.Object
Utility class for functions to be used by the RESTful installer.- Author:
- alee
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUTH_FAILURE
static java.math.BigInteger
BIG_ZERO
static ConfigCertApprovalCallback
certApprovalCallback
static java.lang.String
DBUSER
static java.lang.String
FAILURE
static org.slf4j.Logger
logger
static java.lang.Long
MINUS_ONE
static java.lang.String
SUCCESS
-
Constructor Summary
Constructors Constructor Description ConfigurationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addProfilesToTPSUser(java.lang.String adminID)
static void
backupKeys(java.lang.String pwd, java.lang.String fname)
static void
configCert(ConfigurationRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context, Cert certObj)
static void
createAdmin(java.lang.String uid, java.lang.String email, java.lang.String name, java.lang.String pwd)
static void
createAdminCertificate(java.lang.String certRequest, java.lang.String certRequestType, java.lang.String subject)
static void
createCertRecord(IConfigStore cs, Cert cert)
static java.security.KeyPair
createECCKeyPair(org.mozilla.jss.crypto.CryptoToken token, java.lang.String curveName, IConfigStore config, java.lang.String ct)
static void
createPKCS7(X509CertImpl cert)
static java.security.KeyPair
createRSAKeyPair(org.mozilla.jss.crypto.CryptoToken token, int keysize, IConfigStore config, java.lang.String ct)
static void
createSecurityDomain()
static boolean
deleteDir(java.io.File dir)
static void
deleteEntries(netscape.ldap.LDAPSearchResults res, netscape.ldap.LDAPConnection conn, java.lang.String[] excludedDNs)
static void
deleteEntry(netscape.ldap.LDAPConnection conn, java.lang.String dn, java.lang.String[] excludedDNs)
static void
deleteExistingCerts()
static void
deleteSubtree(netscape.ldap.LDAPConnection conn, java.lang.String dn)
static void
enableUSNPlugin()
static void
exportTransportCert(java.net.URI secdomainURI, java.net.URI targetURI, java.lang.String transportCert)
static void
generateCertRequest(IConfigStore config, java.lang.String certTag, Cert cert)
static java.lang.String
get(java.lang.String hostname, int port, boolean secure, java.lang.String path, java.lang.String clientnickname, org.mozilla.jss.ssl.SSLCertificateApprovalCallback certApprovalCallback)
static java.lang.String
getCertChain(java.lang.String host, int port, java.lang.String serverPath)
static void
getConfigEntriesFromMaster()
static java.lang.String
getContentValue(java.lang.String body, java.lang.String header)
static java.lang.String
getDomainXML(java.lang.String hostname, int https_admin_port, boolean https)
static X509Key
getECCX509Key(IConfigStore config, java.lang.String certTag)
static java.lang.String
getInstallToken(java.lang.String sdhost, int sdport, java.lang.String user, java.lang.String passwd)
static java.util.ArrayList<java.lang.String>
getMasterCertKeyList()
static java.lang.String
getNickname(IConfigStore config, java.lang.String certTag)
static java.lang.String
getOldCookie(java.lang.String sdhost, int sdport, java.lang.String user, java.lang.String passwd)
static int
getPortFromSecurityDomain(java.lang.String domainXML, java.lang.String host, int port, java.lang.String csType, java.lang.String givenTag, java.lang.String wantedTag)
static X509Key
getRSAX509Key(IConfigStore config, java.lang.String certTag)
static void
getSecurityDomainPorts(java.lang.String domainXML, java.lang.String host, int port)
static void
getSharedSecret(java.lang.String tksHost, int tksPort, boolean importKey)
static java.lang.String
getSubsystemCert()
static java.lang.String
getSubsystemCert(java.lang.String host, int port, boolean https)
static int
getSubsystemCount(java.lang.String hostname, int https_admin_port, boolean https, java.lang.String type)
static java.lang.String
getTransportCert(java.net.URI secdomainURI, java.net.URI kraUri)
static java.util.Vector<java.lang.String>
getUrlListFromSecurityDomain(IConfigStore config, java.lang.String type, java.lang.String portType)
static byte[]
getX509Cert(java.lang.String nickname, java.util.Vector<java.util.Vector<java.lang.Object>> cert_collection)
static org.mozilla.jss.crypto.X509Certificate
getX509CertFromToken(byte[] cert)
static void
handleCert(Cert cert)
static void
importAndSetCertPermissionsFromHSM()
static void
importCert(java.lang.String subsystem, java.lang.String tag, java.lang.String tokenname, java.lang.String nickname, X509CertImpl impl)
static void
importCertChain(java.lang.String certchain, java.lang.String tag)
static void
importKeyCert(org.mozilla.jss.util.Password password, java.util.Vector<java.util.Vector<java.lang.Object>> pkeyinfo_collection, java.util.Vector<java.util.Vector<java.lang.Object>> cert_collection)
static void
importLDIFS(java.lang.String param, netscape.ldap.LDAPConnection conn)
static void
importLDIFS(java.lang.String param, netscape.ldap.LDAPConnection conn, boolean suppressErrors)
static boolean
isAuditSigningCert(java.lang.String name)
static boolean
isCASigningCert(java.lang.String name)
static boolean
isSDHostDomainMaster(IConfigStore config)
static boolean
isValidCloneURI(java.lang.String domainXML, java.lang.String cloneHost, int clonePort)
static byte[]
loadCertRequest(IConfigStore config, java.lang.String subsystem, java.lang.String tag)
static java.security.KeyPair
loadKeyPair(java.lang.String nickname, java.lang.String token)
static void
populateDB()
static void
populateDBManager()
static void
populateVLVIndexes()
static java.lang.String
post(java.lang.String hostname, int port, boolean secure, java.lang.String path, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, java.lang.String clientnickname, org.mozilla.jss.ssl.SSLCertificateApprovalCallback certApprovalCallback)
static void
registerUser(java.net.URI secdomainURI, java.net.URI targetURI, java.lang.String targetType)
static void
releaseConnection(netscape.ldap.LDAPConnection conn)
static void
removeOldDBUsers(java.lang.String subjectDN)
static void
removePreopConfigEntries()
save variables needed for cloning and remove preopsstatic void
restoreCertsFromP12(java.lang.String p12File, java.lang.String p12Pass)
static void
setSigningAlgorithm(java.lang.String ct, java.lang.String keyAlgo, IConfigStore config)
static void
setupClientAuthUser()
static void
setupDBUser()
static void
storeKeyPair(IConfigStore config, java.lang.String tag, java.security.KeyPair pair)
static java.lang.String
submitAdminCertRequest(java.lang.String ca_hostname, int ca_port, java.lang.String profileId, java.lang.String certRequestType, java.lang.String certRequest, java.lang.String subjectDN)
static void
updateAuthdbInfo(java.lang.String basedn, java.lang.String host, java.lang.String port, java.lang.String secureConn)
static void
updateCloneConfig()
static void
updateConfig(IConfigStore config, Cert cert)
static boolean
updateConfigEntries(java.lang.String hostname, int port, boolean https, java.lang.String servlet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, IConfigStore config)
static void
updateDomainXML(java.lang.String hostname, int port, boolean https, java.lang.String servlet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, boolean useClientAuth)
static void
updateNextRanges()
static void
updateNumberRange(java.lang.String hostname, int eePort, int adminPort, boolean https, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, java.lang.String type)
static void
updateSecurityDomain()
static void
verifySystemCertificates()
-
-
-
Field Detail
-
logger
public static final org.slf4j.Logger logger
-
SUCCESS
public static java.lang.String SUCCESS
-
FAILURE
public static java.lang.String FAILURE
-
AUTH_FAILURE
public static java.lang.String AUTH_FAILURE
-
BIG_ZERO
public static final java.math.BigInteger BIG_ZERO
-
MINUS_ONE
public static final java.lang.Long MINUS_ONE
-
DBUSER
public static final java.lang.String DBUSER
- See Also:
- Constant Field Values
-
certApprovalCallback
public static ConfigCertApprovalCallback certApprovalCallback
-
-
Method Detail
-
get
public static java.lang.String get(java.lang.String hostname, int port, boolean secure, java.lang.String path, java.lang.String clientnickname, org.mozilla.jss.ssl.SSLCertificateApprovalCallback certApprovalCallback) throws java.lang.Exception
- Throws:
java.lang.Exception
-
post
public static java.lang.String post(java.lang.String hostname, int port, boolean secure, java.lang.String path, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, java.lang.String clientnickname, org.mozilla.jss.ssl.SSLCertificateApprovalCallback certApprovalCallback) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getCertChain
public static java.lang.String getCertChain(java.lang.String host, int port, java.lang.String serverPath) throws java.lang.Exception
- Throws:
java.lang.Exception
-
importCertChain
public static void importCertChain(java.lang.String certchain, java.lang.String tag) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getInstallToken
public static java.lang.String getInstallToken(java.lang.String sdhost, int sdport, java.lang.String user, java.lang.String passwd) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getOldCookie
public static java.lang.String getOldCookie(java.lang.String sdhost, int sdport, java.lang.String user, java.lang.String passwd) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getContentValue
public static java.lang.String getContentValue(java.lang.String body, java.lang.String header)
-
getDomainXML
public static java.lang.String getDomainXML(java.lang.String hostname, int https_admin_port, boolean https) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSecurityDomainPorts
public static void getSecurityDomainPorts(java.lang.String domainXML, java.lang.String host, int port) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
- Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
-
getUrlListFromSecurityDomain
public static java.util.Vector<java.lang.String> getUrlListFromSecurityDomain(IConfigStore config, java.lang.String type, java.lang.String portType) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isValidCloneURI
public static boolean isValidCloneURI(java.lang.String domainXML, java.lang.String cloneHost, int clonePort) throws EPropertyNotFound, EBaseException, org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
- Throws:
EPropertyNotFound
EBaseException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
-
getConfigEntriesFromMaster
public static void getConfigEntriesFromMaster() throws java.lang.Exception
- Throws:
java.lang.Exception
-
updateNumberRange
public static void updateNumberRange(java.lang.String hostname, int eePort, int adminPort, boolean https, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, java.lang.String type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
updateConfigEntries
public static boolean updateConfigEntries(java.lang.String hostname, int port, boolean https, java.lang.String servlet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, IConfigStore config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
restoreCertsFromP12
public static void restoreCertsFromP12(java.lang.String p12File, java.lang.String p12Pass) throws java.lang.Exception
- Throws:
java.lang.Exception
-
verifySystemCertificates
public static void verifySystemCertificates() throws java.lang.Exception
- Throws:
java.lang.Exception
-
importKeyCert
public static void importKeyCert(org.mozilla.jss.util.Password password, java.util.Vector<java.util.Vector<java.lang.Object>> pkeyinfo_collection, java.util.Vector<java.util.Vector<java.lang.Object>> cert_collection) throws java.lang.Exception
- Throws:
java.lang.Exception
-
importAndSetCertPermissionsFromHSM
public static void importAndSetCertPermissionsFromHSM() throws EBaseException, org.mozilla.jss.NotInitializedException, java.io.IOException, java.security.cert.CertificateEncodingException, org.mozilla.jss.NicknameConflictException, org.mozilla.jss.UserCertConflictException, org.mozilla.jss.crypto.NoSuchItemOnTokenException, org.mozilla.jss.crypto.TokenException
- Throws:
EBaseException
org.mozilla.jss.NotInitializedException
java.io.IOException
java.security.cert.CertificateEncodingException
org.mozilla.jss.NicknameConflictException
org.mozilla.jss.UserCertConflictException
org.mozilla.jss.crypto.NoSuchItemOnTokenException
org.mozilla.jss.crypto.TokenException
-
getX509CertFromToken
public static org.mozilla.jss.crypto.X509Certificate getX509CertFromToken(byte[] cert) throws java.io.IOException, java.security.cert.CertificateException, org.mozilla.jss.NotInitializedException
- Throws:
java.io.IOException
java.security.cert.CertificateException
org.mozilla.jss.NotInitializedException
-
isCASigningCert
public static boolean isCASigningCert(java.lang.String name) throws EBaseException
- Throws:
EBaseException
-
isAuditSigningCert
public static boolean isAuditSigningCert(java.lang.String name) throws EPropertyNotFound, EBaseException
- Throws:
EPropertyNotFound
EBaseException
-
deleteExistingCerts
public static void deleteExistingCerts() throws org.mozilla.jss.NotInitializedException, EBaseException, org.mozilla.jss.crypto.TokenException
- Throws:
org.mozilla.jss.NotInitializedException
EBaseException
org.mozilla.jss.crypto.TokenException
-
getMasterCertKeyList
public static java.util.ArrayList<java.lang.String> getMasterCertKeyList() throws EBaseException
- Throws:
EBaseException
-
getX509Cert
public static byte[] getX509Cert(java.lang.String nickname, java.util.Vector<java.util.Vector<java.lang.Object>> cert_collection) throws java.security.cert.CertificateException
- Throws:
java.security.cert.CertificateException
-
releaseConnection
public static void releaseConnection(netscape.ldap.LDAPConnection conn)
-
enableUSNPlugin
public static void enableUSNPlugin() throws java.io.IOException, EBaseException
- Throws:
java.io.IOException
EBaseException
-
populateDB
public static void populateDB() throws java.io.IOException, EBaseException
- Throws:
java.io.IOException
EBaseException
-
importLDIFS
public static void importLDIFS(java.lang.String param, netscape.ldap.LDAPConnection conn) throws EPropertyNotFound, java.io.IOException, EBaseException
- Throws:
EPropertyNotFound
java.io.IOException
EBaseException
-
importLDIFS
public static void importLDIFS(java.lang.String param, netscape.ldap.LDAPConnection conn, boolean suppressErrors) throws java.io.IOException, EPropertyNotFound, EBaseException
- Throws:
java.io.IOException
EPropertyNotFound
EBaseException
-
deleteSubtree
public static void deleteSubtree(netscape.ldap.LDAPConnection conn, java.lang.String dn) throws EBaseException
- Throws:
EBaseException
-
deleteEntries
public static void deleteEntries(netscape.ldap.LDAPSearchResults res, netscape.ldap.LDAPConnection conn, java.lang.String[] excludedDNs) throws netscape.ldap.LDAPException
- Throws:
netscape.ldap.LDAPException
-
deleteEntry
public static void deleteEntry(netscape.ldap.LDAPConnection conn, java.lang.String dn, java.lang.String[] excludedDNs) throws netscape.ldap.LDAPException
- Throws:
netscape.ldap.LDAPException
-
deleteDir
public static boolean deleteDir(java.io.File dir)
-
populateDBManager
public static void populateDBManager() throws java.lang.Exception
- Throws:
java.lang.Exception
-
populateVLVIndexes
public static void populateVLVIndexes() throws java.lang.Exception
- Throws:
java.lang.Exception
-
loadKeyPair
public static java.security.KeyPair loadKeyPair(java.lang.String nickname, java.lang.String token) throws java.lang.Exception
- Throws:
java.lang.Exception
-
storeKeyPair
public static void storeKeyPair(IConfigStore config, java.lang.String tag, java.security.KeyPair pair) throws org.mozilla.jss.crypto.TokenException, EBaseException
- Throws:
org.mozilla.jss.crypto.TokenException
EBaseException
-
createECCKeyPair
public static java.security.KeyPair createECCKeyPair(org.mozilla.jss.crypto.CryptoToken token, java.lang.String curveName, IConfigStore config, java.lang.String ct) throws java.security.NoSuchAlgorithmException, org.mozilla.jss.NoSuchTokenException, org.mozilla.jss.crypto.TokenException, org.mozilla.jss.NotInitializedException, EPropertyNotFound, EBaseException
- Throws:
java.security.NoSuchAlgorithmException
org.mozilla.jss.NoSuchTokenException
org.mozilla.jss.crypto.TokenException
org.mozilla.jss.NotInitializedException
EPropertyNotFound
EBaseException
-
createRSAKeyPair
public static java.security.KeyPair createRSAKeyPair(org.mozilla.jss.crypto.CryptoToken token, int keysize, IConfigStore config, java.lang.String ct) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setSigningAlgorithm
public static void setSigningAlgorithm(java.lang.String ct, java.lang.String keyAlgo, IConfigStore config) throws EPropertyNotFound, EBaseException
- Throws:
EPropertyNotFound
EBaseException
-
getSubsystemCount
public static int getSubsystemCount(java.lang.String hostname, int https_admin_port, boolean https, java.lang.String type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
configCert
public static void configCert(ConfigurationRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context, Cert certObj) throws java.lang.Exception
- Throws:
java.lang.Exception
-
updateConfig
public static void updateConfig(IConfigStore config, Cert cert) throws EBaseException, java.io.IOException
- Throws:
EBaseException
java.io.IOException
-
getNickname
public static java.lang.String getNickname(IConfigStore config, java.lang.String certTag) throws EBaseException
- Throws:
EBaseException
-
getPortFromSecurityDomain
public static int getPortFromSecurityDomain(java.lang.String domainXML, java.lang.String host, int port, java.lang.String csType, java.lang.String givenTag, java.lang.String wantedTag) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
- Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
-
updateCloneConfig
public static void updateCloneConfig() throws EBaseException, java.io.IOException
- Throws:
EBaseException
java.io.IOException
-
loadCertRequest
public static byte[] loadCertRequest(IConfigStore config, java.lang.String subsystem, java.lang.String tag) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generateCertRequest
public static void generateCertRequest(IConfigStore config, java.lang.String certTag, Cert cert) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getECCX509Key
public static X509Key getECCX509Key(IConfigStore config, java.lang.String certTag) throws EPropertyNotFound, EBaseException, java.security.InvalidKeyException
- Throws:
EPropertyNotFound
EBaseException
java.security.InvalidKeyException
-
getRSAX509Key
public static X509Key getRSAX509Key(IConfigStore config, java.lang.String certTag) throws EPropertyNotFound, EBaseException, java.security.InvalidKeyException
- Throws:
EPropertyNotFound
EBaseException
java.security.InvalidKeyException
-
createCertRecord
public static void createCertRecord(IConfigStore cs, Cert cert) throws java.lang.Exception
- Throws:
java.lang.Exception
-
handleCert
public static void handleCert(Cert cert) throws java.lang.Exception
- Throws:
java.lang.Exception
-
importCert
public static void importCert(java.lang.String subsystem, java.lang.String tag, java.lang.String tokenname, java.lang.String nickname, X509CertImpl impl) throws java.lang.Exception
- Throws:
java.lang.Exception
-
backupKeys
public static void backupKeys(java.lang.String pwd, java.lang.String fname) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createAdminCertificate
public static void createAdminCertificate(java.lang.String certRequest, java.lang.String certRequestType, java.lang.String subject) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createPKCS7
public static void createPKCS7(X509CertImpl cert) throws java.io.IOException
- Throws:
java.io.IOException
-
createAdmin
public static void createAdmin(java.lang.String uid, java.lang.String email, java.lang.String name, java.lang.String pwd) throws java.io.IOException, EBaseException, netscape.ldap.LDAPException
- Throws:
java.io.IOException
EBaseException
netscape.ldap.LDAPException
-
submitAdminCertRequest
public static java.lang.String submitAdminCertRequest(java.lang.String ca_hostname, int ca_port, java.lang.String profileId, java.lang.String certRequestType, java.lang.String certRequest, java.lang.String subjectDN) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createSecurityDomain
public static void createSecurityDomain() throws EBaseException, netscape.ldap.LDAPException, java.lang.NumberFormatException, java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
EBaseException
netscape.ldap.LDAPException
java.lang.NumberFormatException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
updateSecurityDomain
public static void updateSecurityDomain() throws java.lang.Exception
- Throws:
java.lang.Exception
-
isSDHostDomainMaster
public static boolean isSDHostDomainMaster(IConfigStore config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
updateDomainXML
public static void updateDomainXML(java.lang.String hostname, int port, boolean https, java.lang.String servlet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> content, boolean useClientAuth) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setupClientAuthUser
public static void setupClientAuthUser() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSubsystemCert
public static java.lang.String getSubsystemCert(java.lang.String host, int port, boolean https) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTransportCert
public static java.lang.String getTransportCert(java.net.URI secdomainURI, java.net.URI kraUri) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSharedSecret
public static void getSharedSecret(java.lang.String tksHost, int tksPort, boolean importKey) throws EPropertyNotFound, EBaseException, java.net.URISyntaxException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException, org.mozilla.jss.NotInitializedException, org.mozilla.jss.crypto.TokenException, org.mozilla.jss.crypto.ObjectNotFoundException, java.io.IOException
- Throws:
EPropertyNotFound
EBaseException
java.net.URISyntaxException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
org.mozilla.jss.NotInitializedException
org.mozilla.jss.crypto.TokenException
org.mozilla.jss.crypto.ObjectNotFoundException
java.io.IOException
-
setupDBUser
public static void setupDBUser() throws java.security.cert.CertificateException, netscape.ldap.LDAPException, EBaseException, org.mozilla.jss.NotInitializedException, org.mozilla.jss.crypto.ObjectNotFoundException, org.mozilla.jss.crypto.TokenException, java.io.IOException
- Throws:
java.security.cert.CertificateException
netscape.ldap.LDAPException
EBaseException
org.mozilla.jss.NotInitializedException
org.mozilla.jss.crypto.ObjectNotFoundException
org.mozilla.jss.crypto.TokenException
java.io.IOException
-
addProfilesToTPSUser
public static void addProfilesToTPSUser(java.lang.String adminID) throws EUsrGrpException, netscape.ldap.LDAPException
- Throws:
EUsrGrpException
netscape.ldap.LDAPException
-
registerUser
public static void registerUser(java.net.URI secdomainURI, java.net.URI targetURI, java.lang.String targetType) throws java.lang.Exception
- Throws:
java.lang.Exception
-
exportTransportCert
public static void exportTransportCert(java.net.URI secdomainURI, java.net.URI targetURI, java.lang.String transportCert) throws java.lang.Exception
- Throws:
java.lang.Exception
-
removeOldDBUsers
public static void removeOldDBUsers(java.lang.String subjectDN) throws EBaseException, netscape.ldap.LDAPException
- Throws:
EBaseException
netscape.ldap.LDAPException
-
getSubsystemCert
public static java.lang.String getSubsystemCert() throws EBaseException, org.mozilla.jss.NotInitializedException, org.mozilla.jss.crypto.ObjectNotFoundException, org.mozilla.jss.crypto.TokenException, java.security.cert.CertificateEncodingException, java.io.IOException
- Throws:
EBaseException
org.mozilla.jss.NotInitializedException
org.mozilla.jss.crypto.ObjectNotFoundException
org.mozilla.jss.crypto.TokenException
java.security.cert.CertificateEncodingException
java.io.IOException
-
updateAuthdbInfo
public static void updateAuthdbInfo(java.lang.String basedn, java.lang.String host, java.lang.String port, java.lang.String secureConn)
-
updateNextRanges
public static void updateNextRanges() throws EBaseException, netscape.ldap.LDAPException
- Throws:
EBaseException
netscape.ldap.LDAPException
-
removePreopConfigEntries
public static void removePreopConfigEntries() throws EBaseException
save variables needed for cloning and remove preops- Throws:
EBaseException
-
-