Class AbstractCredentialsImpl
java.lang.Object
org.alfresco.repo.remotecredentials.AbstractCredentialsImpl
- All Implemented Interfaces:
Serializable,PermissionCheckValue,BaseCredentialsInfo
- Direct Known Subclasses:
OAuth1CredentialsInfoImpl,OAuth2CredentialsInfoImpl,PasswordCredentialsInfoImpl
This class is the parent of a set of Remote Credentials
- Since:
- Odin
- Author:
- Nick Burch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCredentialsImpl(NodeRef nodeRef, QName type, String remoteSystemName, NodeRef remoteSystemContainerNodeRef) AbstractCredentialsImpl(QName type) Creates a new, emptyAbstractCredentialsImplready to be stored later -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the underlying node value that needs to be permission checked.voidsetLastAuthenticationSucceeded(boolean succeeded) voidsetRemoteUsername(String username)
-
Constructor Details
-
AbstractCredentialsImpl
Creates a new, emptyAbstractCredentialsImplready to be stored later -
AbstractCredentialsImpl
-
-
Method Details
-
getNodeRef
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfaceBaseCredentialsInfo- Specified by:
getNodeRefin interfacePermissionCheckValue- Returns:
- the NodeRef of the underlying credentials
-
getCredentialsType
- Specified by:
getCredentialsTypein interfaceBaseCredentialsInfo- Returns:
- the Type of the underlying credentials
-
getRemoteSystemName
- Specified by:
getRemoteSystemNamein interfaceBaseCredentialsInfo- Returns:
- the Remote System Name the credentials belong to
-
getRemoteSystemContainerNodeRef
- Specified by:
getRemoteSystemContainerNodeRefin interfaceBaseCredentialsInfo- Returns:
- the NodeRef of the container for the Remote System
-
getRemoteUsername
- Specified by:
getRemoteUsernamein interfaceBaseCredentialsInfo- Returns:
- the Remote Username
-
setRemoteUsername
-
getLastAuthenticationSucceeded
public boolean getLastAuthenticationSucceeded()- Specified by:
getLastAuthenticationSucceededin interfaceBaseCredentialsInfo- Returns:
- whether the last authentication attempt succeeded
-
setLastAuthenticationSucceeded
public void setLastAuthenticationSucceeded(boolean succeeded)
-