Class PasswordCredentialsFactory
java.lang.Object
org.alfresco.repo.remotecredentials.PasswordCredentialsFactory
- All Implemented Interfaces:
RemoteCredentialsInfoFactory
The Factory for building
PasswordCredentialsInfo objects- Since:
- Odin
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.remotecredentials.RemoteCredentialsInfoFactory
RemoteCredentialsInfoFactory.FactoryHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCredentials(QName type, NodeRef nodeRef, String remoteSystemName, NodeRef remoteSystemContainerNodeRef, Map<QName, Serializable> properties) Creates a newPasswordCredentialsInfobased on the details of the underlying node.Serializes the givenBaseCredentialsInfoobject to node properties.voidsetMetadataEncryptor(MetadataEncryptor metadataEncryptor)
-
Constructor Details
-
PasswordCredentialsFactory
public PasswordCredentialsFactory()
-
-
Method Details
-
setMetadataEncryptor
-
createCredentials
public PasswordCredentialsInfo createCredentials(QName type, NodeRef nodeRef, String remoteSystemName, NodeRef remoteSystemContainerNodeRef, Map<QName, Serializable> properties) Creates a newPasswordCredentialsInfobased on the details of the underlying node.- Specified by:
createCredentialsin interfaceRemoteCredentialsInfoFactory- Parameters:
type- The type of the credentials node, a child of rc:credentialBasenodeRef- The NodeRef of the credentials nodeproperties- All the node properties
-
serializeCredentials
Serializes the givenBaseCredentialsInfoobject to node properties.- Specified by:
serializeCredentialsin interfaceRemoteCredentialsInfoFactory- Parameters:
info- The Credentials object to serialize- Returns:
- The final set of properties to be serialized for the node
-