Interface RemoteCredentialsInfoFactory

All Known Implementing Classes:
OAuth1CredentialsFactory, OAuth2CredentialsFactory, PasswordCredentialsFactory

public interface RemoteCredentialsInfoFactory
The interface which controls how implementations of BaseCredentialsInfo are serialized
Since:
Odin
Author:
Nick Burch
  • Method Details

    • createCredentials

      BaseCredentialsInfo createCredentials(QName type, NodeRef nodeRef, String remoteSystemName, NodeRef remoteSystemContainerNodeRef, Map<QName,Serializable> properties)
      Creates a new BaseCredentialsInfo object of the appropriate type, based on the details of the underlying node.
      Parameters:
      type - The type of the credentials node, a child of rc:credentialBase
      nodeRef - The NodeRef of the credentials node
      properties - All the node properties
    • serializeCredentials

      Map<QName,Serializable> serializeCredentials(BaseCredentialsInfo info)
      Serializes the given BaseCredentialsInfo object to node properties.
      Parameters:
      info - The Credentials object to serialize
      Returns:
      The properties to be serialized for the node