public class ConnectorConfigurator extends Object
| Constructor and Description |
|---|
ConnectorConfigurator()
Default constructor; filepath is the default Classpath location.
|
ConnectorConfigurator(URL url) |
| Modifier and Type | Method and Description |
|---|---|
Connector |
addConnector(String lName)
Add a connector to the in-memory array.
|
int |
changeEncryptionType(boolean isNewEncryptionTypeScoped)
Change the encryption type, to scoped or not scoped.
|
void |
deleteConnector(String lName)
Delete a connector from the in-memory array
|
int |
encryptAllUnencryptedEntries()
Enrypt all entries in the config file not currently encrypted, in the in-memory array.
|
int |
getConfigFileEntrySize() |
String |
getConfigUrlStr() |
Connector[] |
getConnectorArray() |
Connector |
getConnectorByName(String lName)
get a named connector from in-memory connector array
|
String |
getDecryptedValue(String encrypted,
boolean isScoped)
Decrypt value using specified scheme.
|
int |
getUnencryptedCount() |
boolean |
isEncryptionScoped() |
boolean |
save()
Save the in-memory state of config file/connector array via XMLBeans to physical config file
|
void |
setEncryptedAccessCode(Connector conn,
String accessCode)
sets encrypted access code, and (if entry not currently encrypted) encrypts verify code and marks entry
encrypted, in the in-memory array.
|
void |
setEncryptedVerifyCode(Connector conn,
String verifyCode)
Sets encrypted verify code, and (if entry not currently encrypted) encrypts access code and marks entry
encrypted, in the in-memory array.
|
boolean |
updateEncryptionIfNeeded(Connector conn)
Encrypts an entry (both access/verify codes) if not currently encrypted, in the in-memory array.
|
boolean |
validateMemoryArr(Collection errors)
Call XMLBeans to validate the in-memory array.
|
public ConnectorConfigurator()
public ConnectorConfigurator(URL url)
public String getConfigUrlStr()
public Connector[] getConnectorArray() throws VistaLinkResourceException
VistaLinkResourceExceptionpublic int getConfigFileEntrySize()
throws VistaLinkResourceException
VistaLinkResourceExceptionpublic Connector getConnectorByName(String lName) throws VistaLinkResourceException
lName - lookup key corresponding to jndiName attributeVistaLinkResourceExceptionpublic boolean save()
throws VistaLinkResourceException
VistaLinkResourceExceptionpublic int getUnencryptedCount()
throws VistaLinkResourceException
VistaLinkResourceExceptionpublic int encryptAllUnencryptedEntries()
throws VistaLinkResourceException
VistaLinkResourceExceptionpublic int changeEncryptionType(boolean isNewEncryptionTypeScoped)
throws VistaLinkResourceException
isNewEncryptionTypeScoped - whether the encryption to switch to is scoped or not scopedVistaLinkResourceExceptionpublic boolean isEncryptionScoped()
throws VistaLinkResourceException
VistaLinkResourceExceptionpublic boolean updateEncryptionIfNeeded(Connector conn) throws VistaLinkResourceException
conn - VistaLinkResourceExceptionpublic void setEncryptedAccessCode(Connector conn, String accessCode) throws VistaLinkResourceException
conn - accessCode - VistaLinkResourceExceptionpublic void setEncryptedVerifyCode(Connector conn, String verifyCode) throws VistaLinkResourceException
conn - verifyCode - VistaLinkResourceExceptionpublic Connector addConnector(String lName) throws VistaLinkResourceException
lName - VistaLinkResourceExceptionpublic void deleteConnector(String lName) throws VistaLinkResourceException
lName - VistaLinkResourceExceptionpublic boolean validateMemoryArr(Collection errors) throws VistaLinkResourceException
errors - VistaLinkResourceExceptionCopyright © 2026. All rights reserved.