Class Connection
java.lang.Object
org.odpi.openmetadata.metadatasecurity.properties.Referenceable
org.odpi.openmetadata.metadatasecurity.properties.Connection
Connection is a set of properties that describes an open metadata asset. It is designed to convey the important properties
needed to make a security decision.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return an unencrypted password.Return a copy of the configuration properties.Returns the stored description property for the asset.Returns the stored display name property for the asset.Return an encrypted password.Return the endpoint that this connection points to.Return a copy of the secured properties.Return the userId to use on this connection.int
hashCode()
Return hash code based on properties.void
setClearPassword
(String clearPassword) Set up an unencrypted password.void
setConfigurationProperties
(Map<String, Object> configurationProperties) Set up the configuration properties for this Connection.void
setDescription
(String description) Set up the stored description property associated with the asset.void
setDisplayName
(String displayName) Set up the stored display name property for the asset.void
setEncryptedPassword
(String encryptedPassword) Set up an encrypted password.void
setNetworkAddress
(String networkAddress) Set up the endpoint that this connection points to.void
setSecuredProperties
(Map<String, Object> securedProperties) Set up the secured properties for this Connection.void
Set up the userId to use on this connection.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.metadatasecurity.properties.Referenceable
getAccessGroups, getAdditionalProperties, getConfidence, getConfidentiality, getCriticality, getExtendedProperties, getGUID, getImpact, getOwner, getOwnerPropertyName, getOwnerType, getOwnerTypeName, getQualifiedName, getRetention, getSecurityLabels, getSecurityProperties, getStatus, getTypeGUID, getTypeName, setAccessGroups, setAdditionalProperties, setConfidence, setConfidentiality, setCriticality, setExtendedProperties, setGUID, setImpact, setOwner, setOwnerPropertyName, setOwnerType, setOwnerTypeName, setQualifiedName, setRetention, setSecurityLabels, setSecurityProperties, setStatus, setTypeGUID, setTypeName
-
Constructor Details
-
Connection
public Connection()Default constructor -
Connection
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset summary
-
-
Method Details
-
getDisplayName
Returns the stored display name property for the asset. If no display name is available then null is returned.- Returns:
- String name
-
setDisplayName
Set up the stored display name property for the asset.- Parameters:
displayName
- String name
-
getDescription
Returns the stored description property for the asset. If no description is provided then null is returned.- Returns:
- description String text
-
setDescription
Set up the stored description property associated with the asset.- Parameters:
description
- String text
-
getNetworkAddress
Return the endpoint that this connection points to.- Returns:
- string - typically url
-
setNetworkAddress
Set up the endpoint that this connection points to.- Parameters:
networkAddress
- string - typically url
-
getUserId
Return the userId to use on this connection.- Returns:
- string
-
setUserId
Set up the userId to use on this connection.- Parameters:
userId
- string
-
getEncryptedPassword
Return an encrypted password. The caller is responsible for decrypting it.- Returns:
- string
-
setEncryptedPassword
Set up an encrypted password.- Parameters:
encryptedPassword
- string
-
getClearPassword
Return an unencrypted password.- Returns:
- string
-
setClearPassword
Set up an unencrypted password.- Parameters:
clearPassword
- string
-
setConfigurationProperties
Set up the configuration properties for this Connection.- Parameters:
configurationProperties
- properties that contain additional configuration information for the connector.
-
getConfigurationProperties
Return a copy of the configuration properties. Null means no secured properties are available.- Returns:
- secured properties typically user credentials for the connection
-
setSecuredProperties
Set up the secured properties for this Connection.- Parameters:
securedProperties
- properties that contain secret information such as log on information.
-
getSecuredProperties
Return a copy of the secured properties. Null means no secured properties are available.- Returns:
- secured properties typically user credentials for the connection
-
toString
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-