public class OAuth1CredentialsFactory extends Object implements RemoteCredentialsInfoFactory
OAuth1CredentialsInfo
objectsRemoteCredentialsInfoFactory.FactoryHelper
Constructor and Description |
---|
OAuth1CredentialsFactory() |
Modifier and Type | Method and Description |
---|---|
OAuth1CredentialsInfo |
createCredentials(org.alfresco.service.namespace.QName type,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
String remoteSystemName,
org.alfresco.service.cmr.repository.NodeRef remoteSystemContainerNodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
Creates a new
OAuth1CredentialsInfo based on the details of the underlying node. |
Map<org.alfresco.service.namespace.QName,Serializable> |
serializeCredentials(BaseCredentialsInfo info)
Serializes the given
BaseCredentialsInfo object to node properties. |
void |
setMetadataEncryptor(MetadataEncryptor metadataEncryptor) |
public void setMetadataEncryptor(MetadataEncryptor metadataEncryptor)
public OAuth1CredentialsInfo createCredentials(org.alfresco.service.namespace.QName type, org.alfresco.service.cmr.repository.NodeRef nodeRef, String remoteSystemName, org.alfresco.service.cmr.repository.NodeRef remoteSystemContainerNodeRef, Map<org.alfresco.service.namespace.QName,Serializable> properties)
OAuth1CredentialsInfo
based on the details of the underlying node.createCredentials
in interface RemoteCredentialsInfoFactory
type
- The type of the credentials node, a child of rc:credentialBasenodeRef
- The NodeRef of the credentials nodeproperties
- All the node propertiespublic Map<org.alfresco.service.namespace.QName,Serializable> serializeCredentials(BaseCredentialsInfo info)
BaseCredentialsInfo
object to node properties.serializeCredentials
in interface RemoteCredentialsInfoFactory
info
- The Credentials object to serializeCopyright © 2005–2017 Alfresco Software. All rights reserved.