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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHelper class for implementations ofRemoteCredentialsInfoFactory -
Method Summary
Modifier and TypeMethodDescriptioncreateCredentials(QName type, NodeRef nodeRef, String remoteSystemName, NodeRef remoteSystemContainerNodeRef, Map<QName, Serializable> properties) Creates a newBaseCredentialsInfoobject of the appropriate type, based on the details of the underlying node.Serializes the givenBaseCredentialsInfoobject to node properties.
-
Method Details
-
createCredentials
BaseCredentialsInfo createCredentials(QName type, NodeRef nodeRef, String remoteSystemName, NodeRef remoteSystemContainerNodeRef, Map<QName, Serializable> properties) Creates a newBaseCredentialsInfoobject of the appropriate type, based on the details of the underlying node.- Parameters:
type- The type of the credentials node, a child of rc:credentialBasenodeRef- The NodeRef of the credentials nodeproperties- All the node properties
-
serializeCredentials
Serializes the givenBaseCredentialsInfoobject to node properties.- Parameters:
info- The Credentials object to serialize- Returns:
- The properties to be serialized for the node
-