Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions.factories.model.transport.naming

public Class JNDINamingServiceConfig

extends Object
Class Inheritance
Imports
java.util.Vector, org.eclipse.persistence.internal.security.SecurableObjectHolder, org.eclipse.persistence.internal.sessions.factories.model.property.PropertyConfig

INTERNAL:

Field Summary

Modifier and TypeField and Description
private char[]
private String
private Vector<PropertyConfig>
private SecurableObjectHolder
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

encryptedPassword
getEncryptedPassword
()

Assume the password has been encrypted and return it.

public String
public String
public String

Returns:

decryptedPassword
getPassword
()

This method will return the decrypted password.

public Vector<PropertyConfig>
public String
public String
public void
setEncryptedPassword(String encryptedPassword)

This method should never be called from the Mapping Workbench.

public void
setEncryptionClass(String encryptionClass)

public void
setInitialContextFactoryName(String initialContextFactoryName)

public void
setPassword(String password)

This method will always encrypt the password regardless.

public void
public void
public void
setUsername(String username)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_encryptedPasswordback to summary
private char[] m_encryptedPassword
m_initialContextFactoryNameback to summary
private String m_initialContextFactoryName
m_propertyConfigsback to summary
private Vector<PropertyConfig> m_propertyConfigs
m_securableObjectHolderback to summary
private SecurableObjectHolder m_securableObjectHolder
m_urlback to summary
private String m_url
m_usernameback to summary
private String m_username

Constructor Detail

JNDINamingServiceConfigback to summary
public JNDINamingServiceConfig()

Method Detail

getEncryptedPasswordback to summary
public String getEncryptedPassword()

Assume the password has been encrypted and return it.

Returns:String

encryptedPassword

getEncryptionClassback to summary
public String getEncryptionClass()
getInitialContextFactoryNameback to summary
public String getInitialContextFactoryName()
getPasswordback to summary
public String getPassword()

This method will return the decrypted password. This method should only be called by the Mapping Workbench.

Returns:String

decryptedPassword

getPropertyConfigsback to summary
public Vector<PropertyConfig> getPropertyConfigs()
getURLback to summary
public String getURL()
getUsernameback to summary
public String getUsername()
setEncryptedPasswordback to summary
public void setEncryptedPassword(String encryptedPassword)

This method should never be called from the Mapping Workbench. Instead it is called only at load time of a schema formatted sessions.xml file. It assumes the password is encrypted.

setEncryptionClassback to summary
public void setEncryptionClass(String encryptionClass)
setInitialContextFactoryNameback to summary
public void setInitialContextFactoryName(String initialContextFactoryName)
setPasswordback to summary
public void setPassword(String password)

This method will always encrypt the password regardless. Should only ever be called from the Mapping Workbench. It can be called before setting an encryption class, therefore, the securable object initialization remains in the constructor with default to JCE and changes only if an encryption class is set.

setPropertyConfigsback to summary
public void setPropertyConfigs(Vector<PropertyConfig> propertyConfigs)
setURLback to summary
public void setURL(String url)
setUsernameback to summary
public void setUsername(String username)