Interface CredentialProtocol

    • Method Detail

      • getType

        CredentialProtocolType getType()
        Get the value for Type. (Defines the type of the protocol)
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setType

        void setType​(CredentialProtocolType newType)
        Set the value for Type. (Defines the type of the protocol) This value is optional.
        Parameters:
        newType - the new value for Type.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getCredentialByPartitionEndpointRealUser

        Credential getCredentialByPartitionEndpointRealUser​(Partition partition,
                                                            String endpoint,
                                                            String realUser)
        Get the Credential by CredentialProtocolEndpointRealUser.
        Parameters:
        partition -
        endpoint -
        realUser -
        Returns:
        the Credential, or null if it could not be found
      • getCredentialByPartitionEndpointVirtualUser

        Credential getCredentialByPartitionEndpointVirtualUser​(Partition partition,
                                                               String endpoint,
                                                               String virtualUser)
        Get the Credential by CredentialProtocolEndpointVirtualUser.
        Parameters:
        partition -
        endpoint -
        virtualUser -
        Returns:
        the Credential, or null if it could not be found
      • checkCreatePrivilege

        RequiredPermission checkCreatePrivilege()
        Check whether or not the create action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkViewPrivilege

        RequiredPermission checkViewPrivilege()
        Check whether or not the view action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkEditPrivilege

        RequiredPermission checkEditPrivilege()
        Check whether or not the edit action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkDeletePrivilege

        RequiredPermission checkDeletePrivilege()
        Check whether or not the delete action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.