Class PasswordCredentialsFactory
- java.lang.Object
-
- org.alfresco.repo.remotecredentials.PasswordCredentialsFactory
-
- All Implemented Interfaces:
RemoteCredentialsInfoFactory
public class PasswordCredentialsFactory extends java.lang.Object implements RemoteCredentialsInfoFactory
The Factory for buildingPasswordCredentialsInfoobjects- Since:
- Odin
- Author:
- Nick Burch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.remotecredentials.RemoteCredentialsInfoFactory
RemoteCredentialsInfoFactory.FactoryHelper
-
-
Constructor Summary
Constructors Constructor Description PasswordCredentialsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordCredentialsInfocreateCredentials(org.alfresco.service.namespace.QName type, org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String remoteSystemName, org.alfresco.service.cmr.repository.NodeRef remoteSystemContainerNodeRef, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties)Creates a newPasswordCredentialsInfobased on the details of the underlying node.java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>serializeCredentials(BaseCredentialsInfo info)Serializes the givenBaseCredentialsInfoobject to node properties.voidsetMetadataEncryptor(MetadataEncryptor metadataEncryptor)
-
-
-
Method Detail
-
setMetadataEncryptor
public void setMetadataEncryptor(MetadataEncryptor metadataEncryptor)
-
createCredentials
public PasswordCredentialsInfo createCredentials(org.alfresco.service.namespace.QName type, org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String remoteSystemName, org.alfresco.service.cmr.repository.NodeRef remoteSystemContainerNodeRef, java.util.Map<org.alfresco.service.namespace.QName,java.io.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
public java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> serializeCredentials(BaseCredentialsInfo info)
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
-
-