public class OAuth2CredentialsFactory extends Object implements RemoteCredentialsInfoFactory
OAuth2CredentialsInfo
objectsRemoteCredentialsInfoFactory.FactoryHelper
Constructor and Description |
---|
OAuth2CredentialsFactory() |
Modifier and Type | Method and Description |
---|---|
OAuth2CredentialsInfo |
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
OAuth2CredentialsInfo 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 OAuth2CredentialsInfo 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)
OAuth2CredentialsInfo
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.