public class OAuth2CredentialsFactory extends Object implements RemoteCredentialsInfoFactory
OAuth2CredentialsInfo objectsRemoteCredentialsInfoFactory.FactoryHelper| Constructor and Description |
|---|
OAuth2CredentialsFactory() |
| Modifier and Type | Method and Description |
|---|---|
OAuth2CredentialsInfo |
createCredentials(QName type,
NodeRef nodeRef,
String remoteSystemName,
NodeRef remoteSystemContainerNodeRef,
Map<QName,Serializable> properties)
Creates a new
OAuth2CredentialsInfo based on the details of the underlying node. |
Map<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(QName type, NodeRef nodeRef, String remoteSystemName, NodeRef remoteSystemContainerNodeRef, Map<QName,Serializable> properties)
OAuth2CredentialsInfo based on the details of the underlying node.createCredentials in interface RemoteCredentialsInfoFactorytype - The type of the credentials node, a child of rc:credentialBasenodeRef - The NodeRef of the credentials nodeproperties - All the node propertiespublic Map<QName,Serializable> serializeCredentials(BaseCredentialsInfo info)
BaseCredentialsInfo object to node properties.serializeCredentials in interface RemoteCredentialsInfoFactoryinfo - The Credentials object to serializeCopyright © 2005–2021 Alfresco Software. All rights reserved.